richardlehane / siegfried

signature-based file format identification
http://www.itforarchivists.com/siegfried
Apache License 2.0
217 stars 30 forks source link

It for archivist encoding/return issues #193

Closed ross-spencer closed 2 years ago

ross-spencer commented 2 years ago

Demoing today I spotted some (JSON?) encoding issues in the ITForArchivists interfaces. (Verified on Edge and Chrome)

  1. Drag and drop receives a 502 error and unexpected token:

image

  1. Select file and submit receives a 500 and 404:

image

It should be possible to verify with any particular format whether dragging or selecting. I was using 7z, PDF, and GIF.

richardlehane commented 2 years ago

thanks for letting me know Ross, I know where I broke the drag'n'drop identify (it is trying to load a signature file that isn't there) & will fix tonight.

The second error is because that upload isn't for an arbitrary file, it is only for results files (YAML, JSON, CSV) to give a chart of your results.

ross-spencer commented 2 years ago

The second error is because that upload isn't for an arbitrary file, it is only for results files (YAML, JSON, CSV) to give a chart of your results.

Oh doh!! I see now! thx for clarifying!

richardlehane commented 2 years ago

thanks for letting me know about this one Ross, it is now fixed