Back Forum Reply New

Variable number of file uploads: how to

Hi,

I'm trying to implement the Aurigma File upload tool with Web MVC and basically, I don't know how to handle it. The issues are:
1. The number of files that are uploaded are variable
2. the form fields names supplied start with a Capital

Since Spring by default expects a command object with known numbers of getters and setters and lowercase form field name, I guess I need to do some customization. Any ideas how to approach this?

Cheers,

Marc

In latest version of Image Uploader you can rename POST variables using JavaScript. See here how to do it:

Support/Help/...POSTformat.htm

Hope this helps.

Also, you can use FilesPerOnePackageCount param to specify how many files should be sent using a single POST request. For example, if you set it to 1 and try to upload 10 files, Image Uploader will send 10 POST requests (i.e. call the upload page 10 times sending a single file).

So if Spring platform has such requirements as fixed number of files in one POST request and specific naming rules for POST variables, you can configure Image Uploader to meet these requirements.
¥
Back Forum Reply New