Request additional info from user on uploadMany
Request additional info from user on uploadMany
delcrist
Posts: 6Questions: 2Answers: 0
Using uploadMany with Editor, I have a file upload area where the user can upload files. It works great. However, I was wondering if there's a built in way to request additional information from the user about the file to be uploaded.
For instance, currently, it looks like:
I would like to do something like:
Then...
->fields(
Field::inst( 'id' )
->upload( Upload::inst( $_SERVER['DOCUMENT_ROOT'].'/upload/__ID__.__NAME__' )
->db( 'files', 'id', array('
// Update the server with input value above
'filename' => Upload::DB_FILE_NAME,
'filesize' => Upload::DB_FILE_SIZE,
'web_path' => Upload::DB_WEB_PATH,
'system_path' => Upload::DB_SYSTEM_PATH
) )
If there's no built-in support for this, can you point me in the direction to best implement this feature?
This discussion has been closed.
Replies
Hi,
I'm afraid there is no built in support for what you are looking for. "Many editing" is a feature I'm keen to introduce in future, but it will likely be quite a while off, as there are other features to be implemented first.
In the mean time, you would need to write your own custom field type that would support that ability. The server-side script would likely need to be updated as well as the server-side PHP libraries don't really support many join editing.
Regards,
Allan
Thank you, Allan. I'll work on writing that custom field type.