file upload widget - upload response

Use this board to ask questions or have discussions with other Rich Displays users.
Post Reply
amc
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:

file upload widget - upload response

Post by amc »

The file upload widget has an upload response bound to it in the demo program. In the demo example it returns the number of files, the upload directory & an array of file names (2).

What else can be returned in this structure ?

I need to MIME types & the files sizes for each uploaded file. Is it possible to get those back via the upload response ?

I see they are being passed to the exit program, but ideally i need them in the upload response data structure.
User avatar
David
Profound Logic Staff Member
Posts: 690
Joined: Fri Jan 04, 2008 12:11 pm
First Name: David
Last Name: Russo
Company Name: Profound Logic Software
Contact:

Re: file upload widget - upload response

Post by David »

These are not available in the response property. I would suggest looking at the file extensions.
amc
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: file upload widget - upload response

Post by amc »

ouch... you've really reduced the usefulness of the upload widget if you're not going to provide the mime file type & the upload size back with the response data structure. I don't understand that, you get them at upload time to pass to the exit pogram, but then drop them before returning the response ds.

guess I have to go back to my cgi uploader
User avatar
David
Profound Logic Staff Member
Posts: 690
Joined: Fri Jan 04, 2008 12:11 pm
First Name: David
Last Name: Russo
Company Name: Profound Logic Software
Contact:

Re: file upload widget - upload response

Post by David »

The MIME types of the files are known only to the upload processing code on the backend. This runs in a separate job from the application itself. So, the types cannot be passed along to the application.

The exit program is called from the file upload processing, so the types are known at that time.
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests