Page 1 of 1

When using an input component for an image, how do I get the image file/value?

Posted: Wed Aug 19, 2015 7:40 pm
by A.W.H.

When using an input component for an image, how do I get the image file/value?

I have a user upload an image through an input component for image upload...how do I get this image in javascript and set the value of an image component to this value?

In other words...one they upload a picture how do I display it? Thanks


When using an input component for an image, how do I get the image file/value?

Posted: Wed Aug 19, 2015 8:01 pm
by Serhii Kulibaba

Hello Ave,

Please look at this article: https://developer.mozilla.org/en-US/d...


When using an input component for an image, how do I get the image file/value?

Posted: Wed Aug 19, 2015 10:41 pm
by A.W.H.

Uncaught TypeError: Cannot read property 'files' of null


When using an input component for an image, how do I get the image file/value?

Posted: Wed Aug 19, 2015 10:41 pm
by A.W.H.

I'm not able to access files held by the input component on page...


When using an input component for an image, how do I get the image file/value?

Posted: Wed Aug 19, 2015 10:52 pm
by A.W.H.

I can print the .img or .src but when I load that string into the local storage, and set the image from the local storage variable, it doesn't work.


When using an input component for an image, how do I get the image file/value?

Posted: Wed Aug 19, 2015 11:10 pm
by A.W.H.

https://devcenter.appery.io/tutorials...

Tried this and didn't work...the mapping doesn't store my file into the database.


When using an input component for an image, how do I get the image file/value?

Posted: Sat Aug 22, 2015 12:06 pm
by A.W.H.

Bump


When using an input component for an image, how do I get the image file/value?

Posted: Sat Aug 22, 2015 2:32 pm
by Illya Stepanov

Show us what you have tried and what is not working in your implementation.


When using an input component for an image, how do I get the image file/value?

Posted: Sun Sep 13, 2015 2:24 am
by A.W.H.

https://devcenter.appery.io/tutorials...

Hello. This does not work. I've followed the instructions line for line but alas I'm not actually uploading any data.

Image

http://appery.io/app/view/3cb3af29-28... Image Image

App: http://appery.io/app/view/3cb3af29-28...
Goal: save and print to canvas multiple images.


When using an input component for an image, how do I get the image file/value?

Posted: Wed Sep 16, 2015 1:42 pm
by Serhii Kulibaba

Hello,

I get error: 401 Unauthorized
Where is login service? You have to login to the app before file uploading.