I’m working on a project that needs to accept file uploads. After the file is uploaded, I’m doing some processing - extracting information from the file. I eventually plan to run this in a background worker, but it’s currently running inline.
I’ve tried making use of both after_create and after_save to process the file, but it seems it’s not saved at that point - so my tests fail with “No such file or directory”.
Is there any way to trigger the save method early, or to somehow run my method after the file has been saved to the file system?