Changing File Type When Uploading File via API

I have been able to upload files to Bubble via the api successfully but the files are always of the type “application/octet-stream” regardless of the type of file. Is there anyway to change the type of the file once it is in bubble?

The files I am uploading are of type “application/pdf”. The api for uploading files does not include a “file-type” field. I need to upload them as a “application/pdf”

Any help at all would be awesome!!

Resolved. In the name of the application you need to pass the extension you would like. “Filename.pdf” to make it say “application/pdf” instead of “application/octet-stream”