Page 1 of 1

not getting access to "file"(image) to upload it

Posted: Fri Jul 24, 2015 7:36 am
by A K R

Hi,

i want to upload a file to the database. But the problem is am not able to get file so that i can send it instead am getting the file path as "fakepath/image1.jpg"
How can i get access to the "file" so that i can upload to the database.
i tried the below code:

onclick of button
$.ajax({
type: "POST",
url: "url",
enctype: 'multipart/form-data',
data: {
name: Appery("IMG1_mobiletextinput_13").val()
},
success: function () {
alert("Data Uploaded: ");
}
});


not getting access to "file"(image) to upload it

Posted: Fri Jul 24, 2015 7:58 am
by A K R

Hi,
i tried the tutorial in the link below to upload
https://devcenter.appery.io/tutorials...

it gives an error
Uncaught ReferenceError: uploadMultipleFilesHelper is not defined

As it mentioned in the tutorial that "uploadMultipleFilesHelper is the native Appery.io function that helps to upload files"
then why it says not defined


not getting access to "file"(image) to upload it

Posted: Fri Jul 24, 2015 8:13 am
by A K R

How can i get access to the raw file so that i can upload or send


not getting access to "file"(image) to upload it

Posted: Fri Jul 24, 2015 10:51 pm
by Illya Stepanov

Hi -

How you're trying to access file?

Here is how to work with Files API: https://devcenter.appery.io/documenta...


not getting access to "file"(image) to upload it

Posted: Mon Jul 27, 2015 4:58 am
by A K R

Its like user is uploading his profile pic, we are not able to access the image as a file.
I want to upload image as a file in different server not in Appery db.


not getting access to "file"(image) to upload it

Posted: Tue Jul 28, 2015 9:55 pm
by Illya Stepanov

Please explain how you're taking input file?