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

EACCES - Permission denied @ rb_files_s_rename on Windows #2601

Open
Tjorbenn opened this issue Apr 6, 2022 · 1 comment
Open

EACCES - Permission denied @ rb_files_s_rename on Windows #2601

Tjorbenn opened this issue Apr 6, 2022 · 1 comment

Comments

@Tjorbenn
Copy link

Tjorbenn commented Apr 6, 2022

image

When I try to upload a file using carrierwave I get an EACCES exception. I think it has something to do with files not being closed by carrierwave before moving/renaming.

Carrierwave Version: 2.2.2

@tobmatth
Copy link

tobmatth commented Jun 3, 2022

https://stackoverflow.com/questions/62995807/errnoeacces-upon-deleting-a-file-on-windows-10

Might be sufficient to add a file.close if file.respond_to?(:close) to copy! and move!

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

No branches or pull requests

2 participants