only picture uploads

This commit is contained in:
Torsten 2023-06-18 16:22:08 +03:00
parent 0db45d5834
commit 3cb5e2965d

View File

@ -31,11 +31,9 @@ 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.