Skip to content
This repository has been archived by the owner on Jan 5, 2019. It is now read-only.

undefined method url_expires_in for nil:NilClass: #33

Closed
elliottyson opened this issue Oct 29, 2018 · 5 comments
Closed

undefined method url_expires_in for nil:NilClass: #33

elliottyson opened this issue Oct 29, 2018 · 5 comments

Comments

@elliottyson
Copy link

Hello,

I am having troubles when I want to add pictures.
There is no issue when I copy paste a picture directly in the text editor. However when I try to drag and drop a picture from a folder, it raises an error in ActiveStorage::DirectUploadsController line 19 with the error NoMethodError - undefined method 'url_expires_in' for nil:NilClass:
Any idea of where it can come from?

Thanks

@descovi
Copy link

descovi commented Nov 2, 2018

Here same issue, i'm using rails 5.2.

@descovi
Copy link

descovi commented Nov 2, 2018

In my case, I've solved with a full and correct configuration of active storage.

@elliottyson
Copy link
Author

Hey @Simonini thanks for the feedback, rails 5.2. as well. What do you mean by a full and correct config of active storage ?

@descovi
Copy link

descovi commented Nov 5, 2018

In my case I had to reconfigure activestorage with

rails active_storage:install

and after I add the storage.yml

@a-ta-ta
Copy link

a-ta-ta commented Dec 24, 2018

Assuming you're in development, just try adding in your config/environments/development.rb the following line:
config.active_storage.service = :local

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

No branches or pull requests

4 participants