Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support multiple file uploads in a single field #1

Closed
benkeen opened this issue Dec 16, 2017 · 4 comments

Comments

Projects
None yet
2 participants
@benkeen
Copy link
Member

commented Dec 16, 2017

This'll need the module to be revised, I think. But a very reasonable request!

@sf23103

This comment has been minimized.

Copy link

commented Dec 24, 2018

How will the file names be stored in the database when multiple files are uploaded from a single field? Just curious how this will be handled!

@benkeen

This comment has been minimized.

Copy link
Member Author

commented Dec 25, 2018

Good question, I was pondering the same thing. So right now the field just stores the filename; the file folder + URL are associated with the field itself. So I was thinking of using the colon character as a delimiter to store all file upload names in the database field. A colon is an invalid character for filenames on both Mac + Windows boxes so it seems a sensible delimiter.

@benkeen benkeen added this to the 2.1.0 milestone Dec 25, 2018

@sf23103

This comment has been minimized.

Copy link

commented Dec 25, 2018

Cool, that sounds reasonable. I've got a couple of apps that display images on a page from particular submissions, so I was just thinking about how I'll handle that. I'll just have to parse multiple images out from colon delimiters. Should be easy enough, and the trouble well worth the ability to have multiple uploads in one a single field.

@benkeen

This comment has been minimized.

Copy link
Member Author

commented Jan 19, 2019

This is now working. Should get it out today or tomorrow.

@benkeen benkeen closed this Jan 19, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.