filestack / filestack-js

Official Javascript SDK for the Filestack API and content ingestion system.
https://www.filestack.com
MIT License
206 stars 77 forks source link

Error uploading SVG files via filepicker #372

Closed bathyscaaf closed 3 years ago

bathyscaaf commented 4 years ago

I've attempted to upload many different SVG files. There doesn't appear to be anything wrong with any of them.

Examples from one attempt below:

An example error response from the "onFileUploadFailed" callback: { "filename": "Marbles.svg", "handle": undefined "mimetype": "image/svg+xml", "originalPath": "Marbles.svg", "size": 714275, "source": "local_file_system", "uploadId": "Aif2XvFsQxGZePn2", "url": undefined "originalFile": { "name": "Marbles.svg", "type": "image/svg+xml", "size": 714275 } }

The response for "onUploadDone": { "filesUploaded": [], "filesFailed": [ { "filename": "Marbles.svg", "handle": undefined "mimetype": "image/svg+xml", "originalPath": "Marbles.svg", "size": 714275, "source": "local_file_system", "uploadId": "Aif2XvFsQxGZePn2", "url": undefined "originalFile": { "name": "Marbles.svg", "type": "image/svg+xml", "size": 714275 } } ] }

UGrudzien commented 4 years ago

Hi @bathyscaaf, can you please contact our Support Team (support@filestack.com)? We need to check your application settings. Thank you!

eyalgursoy commented 3 years ago

I'm encountering the same issue, unable to upload SVG files via the file picker, there is no clear documentation about that, why is it being blocked and how can it be fixed? I've tried setting up a workflow, detecting file mimetype of image/svg+xml and strip the file and store it. That didn't do the trick. I've tried contacting the support as well, and got no reply.

pcholuj commented 3 years ago

@eyalgursoy Hi Can u contact to our support? because all uploads od svg and html files are disabled by default for safety reason.

masudhossain commented 8 months ago

Still can't upload svg or xml. Huge dealbreaker for us.