wreality / laser-gcode-app

0 stars 0 forks source link

Uploading PDF files is broken #28

Open zimmer62 opened 9 years ago

zimmer62 commented 9 years ago

I created a new public project, and it tells an error for any PDF, even valid ones I've used before "Invalid file type. Only pdf is currently supported."

wreality commented 9 years ago

Chrome / FF issues like before in #26 ?

I don't know what we're doing magic numbers checking and may just be grepping the uploaded content string from the browser (so it may be that we need to expand the allowed content type strings, or ditch it in favor of magic number checking).

wreality commented 9 years ago

Likely this is related to https://bugzilla.mozilla.org/show_bug.cgi?id=373621

Not saying that we can't work around it, but that seems to be the root of the problem.