-
-
Notifications
You must be signed in to change notification settings - Fork 237
Uploading corrupt images with gm transformWrite will never finish the upload #297
Comments
What happens when gm can't handle it? Does it throw an error we can catch and do cleanup? Otherwise I'm not sure what we could do since we blindly trust the |
The error
Found a open bug regarding this: aheckmann/gm#256 |
I will try https://www.npmjs.org/package/imagemagick and check if the error reporting is better. |
Once you get to the I think there is logic that automatically deletes the file after a few attempts to store it. That may or may not be working correctly at the moment. |
Where can i catch for the exception thrown in createWriteStream? |
Right now you can't. It's called by the fileworker, which is like a separate server worker that does the saving to stores after upload, but we don't have proper error handling in there. We still plan to rewrite the fileworker, at which point we can handle save errors better. I think we want to ultimately funnel the error back up to an onError handler on the collection. |
Closing. Discussion can continue on #227. |
When I upload images that gm/imagemagick can't handle (corrupt images, .ico) the upload will never finish. This has some bad consequences:
Step 1. and 2. will repeat until I manually delete the image. collectionFS should handle this somehow.
The text was updated successfully, but these errors were encountered: