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
I am trying to use the documentation for " Making uploads work across form redisplays" .I have a logo to be uploaded and shown in the next page for preview. This works perfectly when using the path inside the application but not with aws. When I use aws it creates a logo url as https://s3.amazonaws.com/devtestbucket/tmp/1482273992-12777-3371/bmi_chart.jpg
but the files does not get uploaded to the /tmp/1482273992-12777-3371/ folder.
I have pasted the logo uploader created
`class LogoUploader < CarrierWave::Uploader::Base
include CarrierWave::MiniMagick
include CarrierWave::MimeTypes
include Sprockets::Rails::Helper
storage Myapp.setting(:carrierwave, :storage)
def remove!
end
def cache_dir
'/tmp/onboard'
end
def storage_dir
"Images"
end
def store_dir
"images"
end
def extension_white_list
%w(jpg jpeg gif png)
end
def content_type_whitelist
/image//
end
end
`
The text was updated successfully, but these errors were encountered:
I am trying to use the documentation for " Making uploads work across form redisplays" .I have a logo to be uploaded and shown in the next page for preview. This works perfectly when using the path inside the application but not with aws. When I use aws it creates a logo url as https://s3.amazonaws.com/devtestbucket/tmp/1482273992-12777-3371/bmi_chart.jpg
but the files does not get uploaded to the /tmp/1482273992-12777-3371/ folder.
I have pasted the logo uploader created
`class LogoUploader < CarrierWave::Uploader::Base
include CarrierWave::MiniMagick
include CarrierWave::MimeTypes
include Sprockets::Rails::Helper
storage Myapp.setting(:carrierwave, :storage)
def remove!
end
def cache_dir
'/tmp/onboard'
end
def storage_dir
"Images"
end
def store_dir
"images"
end
def extension_white_list
%w(jpg jpeg gif png)
end
def content_type_whitelist
/image//
end
end
`
The text was updated successfully, but these errors were encountered: