only picture uploads
This commit is contained in:
parent
0db45d5834
commit
3cb5e2965d
@ -31,12 +31,10 @@ class PictureUploader < CarrierWave::Uploader::Base
|
|||||||
# process resize_to_fit: [50, 50]
|
# process resize_to_fit: [50, 50]
|
||||||
# end
|
# end
|
||||||
|
|
||||||
# Add an allowlist of extensions which are allowed to be uploaded.
|
def content_type_allowlist
|
||||||
# For images you might use something like this:
|
/image\//
|
||||||
# def extension_allowlist
|
end
|
||||||
# %w(jpg jpeg gif png)
|
|
||||||
# end
|
|
||||||
|
|
||||||
# Override the filename of the uploaded files:
|
# Override the filename of the uploaded files:
|
||||||
# Avoid using model.id or version_name here, see uploader/store.rb for details.
|
# Avoid using model.id or version_name here, see uploader/store.rb for details.
|
||||||
# def filename
|
# def filename
|
||||||
|
Loading…
Reference in New Issue
Block a user