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
PG::Error: could not open file "/tmp/puma20220411-14-1llyqd": No such file or directory
Backtrace
File /app/vendor/bundle/ruby/3.1.0/gems/active_storage-postgresql-0.3.0/lib/active_storage/postgresql/file.rb line 82 in lo_import
File /app/vendor/bundle/ruby/3.1.0/gems/active_storage-postgresql-0.3.0/lib/active_storage/postgresql/file.rb line 82 in lo_import
File /app/vendor/bundle/ruby/3.1.0/gems/active_storage-postgresql-0.3.0/lib/active_storage/postgresql/file.rb line 60 in import
File /app/vendor/bundle/ruby/3.1.0/gems/active_storage-postgresql-0.3.0/lib/active_storage/postgresql/file.rb line 17 in write_or_import
Versions
ruby '3.1.1'
rails '6.1.5'
Any idea ?
The text was updated successfully, but these errors were encountered:
I might make a PR for this later, but for me the issue was with this line.
I would suspect people who are running into this problem are using direct uploads?
Basically, it's not enough to ask if io.respond_to?(:to_path) because direct uploads do respond to to_path, but for me there wasn't actually a tempfile present at the location indicated by the path. The if/else could probably be inverted to check if the io object has a readable body, or maybe just check that it implements to_path AND the file at that path actually exists.
Hi and thank you for this project!
Error
Backtrace
Versions
Any idea ?
The text was updated successfully, but these errors were encountered: