A K R
Posts: 0
Joined: Mon Sep 22, 2014 6:06 am

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

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: ");
}
});

A K R
Posts: 0
Joined: Mon Sep 22, 2014 6:06 am

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

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

A K R
Posts: 0
Joined: Mon Sep 22, 2014 6:06 am

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

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

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

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

Hi -

How you're trying to access file?

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

A K R
Posts: 0
Joined: Mon Sep 22, 2014 6:06 am

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

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.

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

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

Please explain how you're taking input file?

Return to “Issues”