[X] I understand this is a bug report and questions should be posted in the Community Forum
[X] I searched issues and couldn’t find anything (or linked relevant results below)
Link to runnable example
No response
Steps to reproduce
Whenever ImageEditor is used before Compressor, Compressor does not receive filename and fails with:
chunk-uppy.1095d508f2f728d74ea2.js:27 [Uppy] [21:45:04] [Image Compressor] Failed to compress uppy-wn3/b/up/jpg-2v-2v-1e-image/jpeg-1105440-1706684357600:
warn @ chunk-uppy.1095d508f2f728d74ea2.js:27
chunk-uppy.1095d508f2f728d74ea2.js:27 [Uppy] [21:45:04] TypeError: Cannot read properties of undefined (reading 'lastIndexOf')
at r (chunk-uppy.1095d508f2f728d74ea2.js:27:323659)
at chunk-uppy.1095d508f2f728d74ea2.js:27:125411
at p (chunk-vendors.6715ff139c64af28c42c.js:9:619)
at Generator.<anonymous> (chunk-vendors.6715ff139c64af28c42c.js:9:1971)
at Generator.next (chunk-vendors.6715ff139c64af28c42c.js:9:1048)
at r (chunk-vendors.6715ff139c64af28c42c.js:7:303046)
at s (chunk-vendors.6715ff139c64af28c42c.js:7:303249)
I tried reproducing it on Uppy's sandbox, but be aware that ImageEditor is not activated there, hence Compressor works fine. We use vue, our setup is as follows:
Initial checklist
Link to runnable example
No response
Steps to reproduce
Whenever ImageEditor is used before Compressor, Compressor does not receive filename and fails with:
The error is related to this code: https://github.com/transloadit/uppy/blob/c51032c9d1e7f7ac8df199d695aa50142638bd3b/packages/%40uppy/compressor/src/index.js#L56
name
isundefined
because it's not populated infile.data
forcompressedBlob
: https://github.com/transloadit/uppy/blob/c51032c9d1e7f7ac8df199d695aa50142638bd3b/packages/%40uppy/compressor/src/index.js#L50C1-L51C1I tried reproducing it on Uppy's sandbox, but be aware that ImageEditor is not activated there, hence Compressor works fine. We use vue, our setup is as follows: