adapt-security / adapt-authoring-assets

Module for handling Adapt asset data and files
0 stars 0 forks source link

Upload error for certain file types #6

Open taylortom opened 4 months ago

taylortom commented 4 months ago

What happened?

We're currently unable to upload the following file types due to an ffmpeg error:

Error similar to below:

Failed to generate thumbnail, Error: ffmpeg exited with code 1: Error while decoding stream #0:0: Invalid data found when processing input Cannot determine format of input stream 0:0 after EOF Error marking filters as finished Conversion failed!

taylortom commented 3 months ago

Can't replicate this one, have tested both file types multiple times

joe-allen-89 commented 2 months ago

Have tested this both locally and on v1Testing, pngs are working as expected but uploading webp is still giving me the below log and error.

2024-08-08T08:55:52.912Z error server Incorrect data provided: Received unexpected filetypes: Electrics.webp

Image

taylortom commented 2 months ago

This looks like a different error - possibly an issue with how we infer the file mimetypes

taylortom commented 2 months ago

@joe-allen-89 we were missing webp from the accepted types list: https://github.com/adapt-security/adapt-authoring-assets/blob/master/conf/config.schema.json#L23-L35

If you notice any others missing, let me know