Upload Widget in 4.1.1
-
- Experienced User
- Posts: 100
- Joined: Tue Feb 21, 2012 1:24 pm
- First Name: Robert
- Last Name: Mullis
- Company Name: WRC
- State / Province: Georgia
- Country: United States
- Contact:
Upload Widget in 4.1.1
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.
- Attachments
-
- json.txt
- (28.06 KiB) Downloaded 123 times
-
- Experienced User
- Posts: 2711
- Joined: Wed Aug 01, 2012 8:58 am
- First Name: Scott
- Last Name: Klement
- Company Name: Profound Logic
- City: Milwaukee
- State / Province: Wisconsin
Re: Upload Widget in 4.1.1
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:
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.
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)
Let me know if that helps, or if you have a different problem.
-
- Experienced User
- Posts: 100
- Joined: Tue Feb 21, 2012 1:24 pm
- First Name: Robert
- Last Name: Mullis
- Company Name: WRC
- State / Province: Georgia
- Country: United States
- Contact:
Re: Upload Widget in 4.1.1
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.
-
- Experienced User
- Posts: 100
- Joined: Tue Feb 21, 2012 1:24 pm
- First Name: Robert
- Last Name: Mullis
- Company Name: WRC
- State / Province: Georgia
- Country: United States
- Contact:
Re: Upload Widget in 4.1.1
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.
-
- Experienced User
- Posts: 2711
- Joined: Wed Aug 01, 2012 8:58 am
- First Name: Scott
- Last Name: Klement
- Company Name: Profound Logic
- City: Milwaukee
- State / Province: Wisconsin
Re: Upload Widget in 4.1.1
I'm very glad you figured it out! Let me know if you have any other issues.
-
- Profound User
- Posts: 67
- Joined: Thu Jul 29, 2010 1:25 am
- First Name: Tony
- Last Name: Cusack
- Company Name: Welding Industries
- City: Adelaide
- State / Province: Outside Canada/USA
- Zip / Postal Code: 5139
- Country: Australia
- Location: Adelaide, South Australia
- Contact:
Re: Upload Widget in 4.1.1
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
regards
Tony C
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
Who is online
Users browsing this forum: No registered users and 1 guest