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
When using the Filesystem storage driver and if I have image attachment styles set using $this->hasAttachedFile in my Eloquent model's constructor, creation of my model will fail.
This is because when Stapler tries to process the image transformations, it first moves the original uploaded file out of the temp folder to my project's public/system/... folder. However, when it tries to perform image resizing, it tries to reference the original uploaded file from the temp folder, but the file does not exist there anymore because it has been moved.
For now, I simply changed the rename call to copy in the moveFile($file, $filePath) method in Filesystem.php, but I was wondering if there's a cleaner way to approach this.
The text was updated successfully, but these errors were encountered:
leejunkit
changed the title
File moved out of temp folder when performing flushWrites
File moved out of temp folder when performing flushWrites()
Oct 20, 2014
When using the Filesystem storage driver and if I have image attachment styles set using
$this->hasAttachedFile
in my Eloquent model's constructor, creation of my model will fail.This is because when Stapler tries to process the image transformations, it first moves the original uploaded file out of the temp folder to my project's
public/system/...
folder. However, when it tries to perform image resizing, it tries to reference the original uploaded file from the temp folder, but the file does not exist there anymore because it has been moved.For now, I simply changed the
rename
call tocopy
in themoveFile($file, $filePath)
method inFilesystem.php
, but I was wondering if there's a cleaner way to approach this.The text was updated successfully, but these errors were encountered: