Page 1 of 1

Upload Widget in 4.1.1

Posted: Fri Sep 21, 2012 5:12 pm
by rmullis
It has been awhile since I have done a file upload using the widget. The last time I did it, I had no problems. I am now trying to do an upload, since I upgraded ProfoundUI to 4.1.1. So far, I have been unable to get it to work. I have double checked it to the previous one I did that is working and it appears to be the same, just going to different folders. When I click the Upload button, it just sits there and does nothing and my webpage is locked from further interaction. I have attached the JSON file in hopes someone can possibly point out what I am missing.

Re: Upload Widget in 4.1.1

Posted: Fri Sep 21, 2012 7:06 pm
by Scott Klement
There is a problem with the server-side portion of the upload widget, that was discovered and will be fixed in the next release of ProfoundUI.

The problem is that the userid running the server-side program does not have adequate authority to switch to the userid of the user running the upload. The result is that the upload server fails.

The workaround is to make the upload server adopt QSECOFR's authority. This will give it the ability to switch itself to run under the uploading user's authority when it needs to.

To do this, type:

Code: Select all

CHGPGM PGM(PROFOUNDUI/PUI0009109) USRPRF(*OWNER)
CHGOBJOWN OBJ(PROFOUNDUI/PUI0009109) OBJTYPE(*PGM) NEWOWN(QSECOFR)
This'll give that program enough authority. Then, it'll be able to switch to the signed-on user's authority when it needs to handle uploads.

Let me know if that helps, or if you have a different problem.

Re: Upload Widget in 4.1.1

Posted: Mon Sep 24, 2012 12:35 pm
by rmullis
Thanks Scott. That solved my upload problem, but now the file names are not being returned to my program. The files get uploaded successfully, but the datastructure with the number of files uploaded and their names is not getting returned to my program.

Re: Upload Widget in 4.1.1

Posted: Mon Sep 24, 2012 12:42 pm
by rmullis
Nevermind. I solved my problem. I had the datstructure for the upload data defined locally within my procedure. I moved it to define it globally and it worked.

Re: Upload Widget in 4.1.1

Posted: Tue Sep 25, 2012 2:12 am
by Scott Klement
I'm very glad you figured it out! Let me know if you have any other issues.

Re: Upload Widget in 4.1.1

Posted: Sat Oct 06, 2012 12:30 am
by amc
I had applied this fix at 4.1.1 as well, however, it caused the 4.1.3 update (direct from 4.1.1) to fail as the new version of PUI0009109 could not be restored over the QSECOFR owned version.

So, you ought to change the owner back to QPGMR before applying the 4.1.3 update

Code: Select all

CHGOBJOWN OBJ(PROFOUNDUI/PUI0009109) OBJTYPE(*PGM) NEWOWN(QPGMR)


regards

Tony C