Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File moved out of temp folder when performing flushWrites() #95

Open
leejunkit opened this issue Oct 20, 2014 · 1 comment
Open

File moved out of temp folder when performing flushWrites() #95

leejunkit opened this issue Oct 20, 2014 · 1 comment
Labels

Comments

@leejunkit
Copy link

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.

@leejunkit 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
@tabennett tabennett added the bug label Jan 30, 2016
@tabennett
Copy link
Contributor

Are you still having this issue? I've been using this package pretty steadily now and I'm not able to reproduce this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants