Developer forum

Forum » Feature requests » Multiple files in file upload control in items

Multiple files in file upload control in items

Peter Terkildsen
Reply

We're using Itemcreator in order to let the front end user create content from front end. This works fine, but we're in need of several new fields that will allow the user to configure additional content settings. We have created some of these fields via custom code, but there's one field I would like to see in the standardproduct. This is an extension to the file-control which would allow the user to select multiple files instead of just one. Of course, I could just add several file-controls to the form but that would look like crap.

Please :-)


Replies

 
Nicolai Høeg Pedersen
Reply

Hi Peter

Problem is, that the item only has one field for the file. Where should we store the references to other files? Any suggestions? Just a CSV of files on the field value?

Nicolai

 
Morten Bengtson
Reply

Any DBA would probably not agree, but anyway... I suggest storing it as a | (pipe) delimited value, since both comma and semicolon are valid characters in file names. A pipe character is not valid in a file name (on windows at least), which makes it "safe" to use as a delimiter. The field editor should be a list of files with add/remove buttons. The files should be rendered in a template loop.