You are viewing limited content. For full access, please sign in.

Question

Question

Uploading Multiple Files to a Form

asked on March 13, 2016

Hey guys! I came across (what feels like) a bug in Forms 9.2...

Let's say you have a File Upload field in your form, and the user uploads multiple files to it in the same form submission. Then, let's also say that the form in question is configured to save all file uploads to the repository, and that the form assigns a hard-coded name to those uploaded files once they hit the repository (e.g., My Uploaded File).

In this case, regardless of how many files are uploaded to the File Upload field, only ONE of those will actually make it into the repository. This is because each file seems to overwrite the previous one when being saved into the repository, because they all share the same name.

Maybe this is intentional, but I would have expected for all of the uploaded files to be saved into the repository, with (2), (3), etc. appended to the end of the file's name. That seems to be how all other modules save files into the repository.

Not a major issue, as it's fixable with some minor Forms and Workflow configuration/handling, but I just thought that I'd make note of it. Thanks!

2 0

Replies

replied on March 14, 2016

Hi there,

Did you have the version control in the target folder? If you have version control, then duplicate name files get added as a new version. I would suggest in your case, save into a temp folder without versioning enabled, and rename the file use workflow after saved by Forms and move to the target folder.

0 0
replied on July 15, 2020

As of version 10.4 the problem is there. I can find no way to save all files to the repository if the user uploads more than one file with the same name, even if they have different file extensions. You mentioned that it can be fixed. I'd be interested in knowing how. We should be able to use all files uploaded to the form regardless of filename, so I consider this a defect.

0 0
replied on June 22, 2023

I know you mentioned this 3 years ago, but I came across this question while encountering the exact same problem. We had two forms that had multuple files to save under the same Upload. One form saved all the files with "Filename (2), Filename (3), etc)", the other only saved the last file. It was, as Abby mentioned, version control.

The form that was saving all files was to a folder that did not have version control enabled. The form that was only saving the last file did have version control enabled. All the files were there in Version History (and we could copy them out to "rescue" them). By turning of Version Control (right click the parent folder Properties > Folder and uncheck "Automatically place new documents under version control") it started to behave the way we wanted.

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.