Page 1 of 1

Input document shows success message but file is not in the disk

Posted: Mon Jun 17, 2019 9:40 pm
by sharifruet
Our processmaker application is accessing many people around the globe.

For some users, when the upload files to a dynaform they are seeing that file was uploaded successfully (green progressbar reaches to right). And from case information -> input document an entry is there. But when I click for download that file nothing happens.
We have checked that the file is not present in the disk but there is an entry in APP_DOCUMENTS.

Can anyone suggest me a solution, or suggest me a way how can I debug further.

Re: Input document shows success message but file is not in the disk

Posted: Tue Jun 18, 2019 8:20 pm
by amosbatto
Are you using a File field? If so, the file is only saved to the file system after the Dynaform is submitted and after any triggers after the Dynaform have executed. If an error occurs or a timeout occurs while submitting or executing one of the triggers, then the file might not save correctly.

If your users aren't waiting until the Dynaform has finished submitting (and triggers fire after the Dynaform), before they click on another link, then the file won't be saved correctly.

Do you have any triggers after the Dynaform?

I recommend that you use a MultipleFile field instead of a File field to upload the files.

Re: Input document shows success message but file is not in the disk

Posted: Wed Jun 19, 2019 2:23 am
by sharifruet
Today I went to a user who is facing the upload problem and found that uploding progress bar reaches till 100% but actually a 502 response is coming from server.

I am using multifile component in dynaform.

Yes I have trigger after dynaform, but may be that is not relevent to this problem.

Re: Input document shows success message but file is not in the disk

Posted: Wed Jun 19, 2019 6:45 pm
by amosbatto
If you press F12 to open the web browser's debugger, and go to the "Net" or "Network" tab, which ProcessMaker file is generating this 502 error?
If you go to the "Console" tab, do you see any JavaScript error messages?

Re: Input document shows success message but file is not in the disk

Posted: Thu Jun 20, 2019 2:15 am
by sharifruet
Untitled.png
Untitled.png (111.47 KiB) Viewed 4439 times
Here is the screenshot of error getting at user machine. Can anyone suggest me an work-around.

Re: Input document shows success message but file is not in the disk

Posted: Mon Jun 24, 2019 10:05 pm
by amosbatto
Are you using the ProcessMaker Mobile App to upload the file? (The REST endpoint is /light/ which is usually used by the mobile app endpoint. )
If this is a Mobile App problem, then you might want to use the "Mobile" User Experience and use a web browser on your mobile device, rather than the Mobile App.

By the way, which versions of ProcessMaker and the ProcessMaker Mobile App are you using?
You might want to file a bug report about this.

Re: Input document shows success message but file is not in the disk

Posted: Sun Jun 30, 2019 10:26 pm
by sharifruet
I am not using mobile app. Its web mobile UX skin.

Processmaker version 1.3.1

Re: Input document shows success message but file is not in the disk

Posted: Mon Jul 01, 2019 11:19 pm
by amosbatto
sharifruet wrote: Sun Jun 30, 2019 10:26 pm I am not using mobile app. Its web mobile UX skin.

Processmaker version 1.3.1
ProcessMaker version 1.3.1 doesn't exist. Do you mean ProcessMaker 3.3.1? I want to test this in the same version that you are using.