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

Enhancement: Rest API should allow submit of multiple Binary files with different names #13532

Closed
DeanGonzalez opened this issue Jan 31, 2018 · 1 comment

Comments

@DeanGonzalez
Copy link

DeanGonzalez commented Jan 31, 2018

Tested on Master on 1/31/18

I just tested this issue: #11613

I noticed that when you upload multiple binary files, that they all get the same filename as shown in the picture below:
filenameproblem

Right now the fileName parameter is not only naming the file, but also the names of ALL the binary files uploaded with the same name.

curl -v -u [email protected]:admin -XPUT http://localhost:8080/api/content/publish/1 -F "json={stName:'fileAsset',hostFolder:'demo.dotcms.com:/images',title:'test7',binary_fields:'newBinary,fileAsset',fileName:'myFileName.jpg'};type=application/json" -F "[email protected];type=application/jpg" -F "[email protected];type=application/jpg"

Suggestion for Enhancement:
We should add another parameter, just like the "binary_fields" parameter that is comma separated above to determine the order of the binary upload. We could name the parameter something like "binary_field_names" which permits a comma separated list of the names of the binary files on upload.

This way the file names can be controlled via api on submit.

@stale
Copy link

stale bot commented Sep 28, 2019

This issue has been automatically marked as stale because it has not had activity within the past 90 days. It will be closed in 30 days no further activity occurs. Thank you.

@stale stale bot added the wontfix label Sep 28, 2019
@stale stale bot closed this as completed Oct 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant