How to change chunked upload filename from "blob" to another value?

Viewed 266

After a recent installation of update 4 to ColdFusion 2018 which stopped the ability to have file uploads with no file extension, Plupload chunked file uploads no longer work.

I am providing the filename and name for the multipartparams for BeforeUpload in the preinit event, but I am still seeing the following in the data being sent to the server:

Content-Disposition: form-data; name="file"; filename="blob"
Content-Type: application/octet-stream

When I upload a file below the chunk size, the filename is the proper filename and the "Uploads with empty file extensions are not allowed" error does not appear.

I am looking for an option to set the value that Plupload uses for chunking, so I can add a dummy file extension. Outside of changing the Plupload libraries directly I have not been able to find an option available (or I am just blind).

1 Answers

Having custom name for the blob is only possible for multipart uploads (multipart option should be set to true - default) and then you can set file_data_name property to a custom value.

Related