You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The attach method deletes the image it just attached when it's done.
This should not be the responsibility of the library. The library should rely on express (or the system) to clean up its own tmp files.
My integration tests attach images to object. In tests, I have to read my fixture file, create a tmp file for it, then attach it since mongoose-attachments is going to delete it. That's a lot of overhead for something the library shouldn't be doing.
The text was updated successfully, but these errors were encountered:
The
attach
method deletes the image it just attached when it's done.My integration tests attach images to object. In tests, I have to read my fixture file, create a tmp file for it, then attach it since mongoose-attachments is going to delete it. That's a lot of overhead for something the library shouldn't be doing.
The text was updated successfully, but these errors were encountered: