Force formpost object name?

asked 2017-02-03 05:47:59 -0500

Hello everyone,

I am using swift's tempurl and formpost to upload files directly from clients. Everything works perfectly but I would like to be able to force a certain name for the object, currently it takes the name of the original file and it causes problems when the filename includes accents. I am pretty sure there are other characters too that would break it...

I could rename the file after the upload, but I cannot since my application cannot reach the file anymore (as the saved name is not the same on the application and on swift). I could list all files and find the correct one using prefix but that seems cumbersome.

Is there a way to create a form post that instead of declare an object prefix, declares the resulting object name. This of course would limit to one file uploaded per form, but that's no problem for me.

edit retag flag offensive close merge delete