Joe7349603
Posts: 0
Joined: Tue Jan 27, 2015 11:08 pm

Appery Doesn't support calling FileUpload plugin if that service is called from different page :(

I will try to be clear to explain this strange behaviour on Appery.

I have an APP where a user can upload service request and the supporting images.

On the main service request page, the user inputs all the data and to upload an image user clicks on a button which opens a dialogue attaches an image then returns to the main page, verifies info and then submits.

The logic I have is. When you hit submit button, upload the image/s, on success, upload raw data (found on service request page). These services are called from the main page.

Here is the issue, when I call the Fileupload service, it return success, then it proceeds to load the raw data BUT when I go to the files DB the image is not there but raw data is uploaded.

I have done lots of debugging and I was able to load both image + raw data but only when I call both services from the Image dialogue page. The reason is...although I am getting success message from fileupload, Apppery will not upload images unless you are on the same image page (dialogue box).

I know I can call a service by using "service.execute();" but this aint working I am using "uploadMultipleFilesHelperNew(existingPhoto_UploadService02, Apperyio('photo2_Select'));" appending .execute() in the end throws an error.

I know the service is fine because I can upload images fine from the dialogue.

How can I call Fileuploadservice from another page...I have a feeling that the plugin needs review also because it throws a success message even when no image has been loaded.

Please provide some help!

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Appery Doesn't support calling FileUpload plugin if that service is called from different page :(

Hello Joe,

You are right, you have to create a fileUpload service on the page, where you need to upload files

Joe7349603
Posts: 0
Joined: Tue Jan 27, 2015 11:08 pm

Appery Doesn't support calling FileUpload plugin if that service is called from different page :(

Thanks... I think I figured it out.

For those interested, save the image in LSV as Base64 and then call your service from the main page by mapping the LSV to the service.

Return to “Issues”