In Rails, I am using s3_direct_upload gem for asset(doc file) upload. Right now if I try to upload an image file as a different asset, it is directly uploading to s3. I need to disable this option for image upload and it should be enable only for document upload.
Rails s3_direct_upload how to disable it
187 Views Asked by Shruthi R At
1
There are 1 best solutions below
Related Questions in RUBY-ON-RAILS
- Rails HABTM: Select everything a that a record 'has'
- Best way to make an HABTM association via console
- dynamically create an ical / ics file from a rails model
- Ruby destroy is not working? Or objects still present?
- NoMethodError: undefined method `update_average_rating' for nil:NilClass
- Select results where joined table contains records with an attribute, but without another
- Showing posts only created when boolean was true
- Ruby on rails and HAML - Print a hash with background color
- How can I monitor an endpoint's status with Ruby?
- How to create dynamic pages without form_for helper in Rails?
- Rails 4.2 jQuery loads only after refresh
- "Access Denied" - User's Permissions to S3 Bucket
- ActiveRecord, Rails 4: has_many :through with scoped conditions failure
- Rails - formatting a list of options
- Rails - Ajax do not work properly on production server
Related Questions in AMAZON-S3
- Convert JSON.gz to JSON in node js
- Downloading objects from S3 with presigned URL
- "Access Denied" - User's Permissions to S3 Bucket
- jQuery file upload to S3 (and rails) with CORS headers
- copying file from local machine to Ubuntu 12.04 returning permission denied
- AWS Flow Framework: Can we run activity worker and activity task on different EC2 instances
- Unable to access files from public s3 bucket with boto
- s3cmd not working as cron-task when echos/dates are added
- AWS S3 object listing
- React-native upload image to amazons s3
- S3 restrictions on quantity of object downloads
- How to upload a photo in Meteor to S3 and have it sync to database item?
- Limit upload size to S3 with presigned URL
- dragonfly-s3 with S3 IAM user causing a forbidden 403 response from Amazon
- Split S3 files into multiple output files
Related Questions in PAPERCLIP
- How to Minitest Controller :create action with Paperclip Validators
- Paperclip config for Amazon S3 and local uploading
- Capture customer uploaded image in admin dashboard?
- Rails s3_direct_upload how to disable it
- Rails: How do I upload Paperclip image attachment to a DB from an unrelated controller + Strong params requirement
- PaperClip check existence before process
- delayed_paperclip is not hitting sidekiq
- Paperclip image upload (base64) - getting 500 internal server error (undefined method 'permit')
- Can i put more than one image on paperclip model
- Multiple different images for same model with paperclip
- Store thumb image to specific directory in paperclip gem
- sidekiq + heroku + paperclip working very slowly
- Ruby on Rails - How to delegate error messages from nested model
- How to use helper method in environment configuration?
- How to download a file with Rails 4 Paperclip using s3
Related Questions in ASSET-PIPELINE
- Asset Pipeline in development
- Javascript works with HTML but not in Rails
- Why do I get MIME type ('text/html') is not executable error for ckeditor rails gem on image uploads?
- Rails4 asset precompiling fails
- Rails s3_direct_upload how to disable it
- image_path doesn't have fingerprint
- bootstrap css and javascript doesn't work in ruby on rails
- Javascript Variables in Rails Assets
- Using compiled images inside Handlebars erb templates
- ActionController::RoutingError (No route matches [GET] "/images/picture.jpg"):
- adding background image in style rails 4
- deploy rails mongo app to heroku
- routing conflict with assets in rails - only on production
- Rails 4 Asset Pipeline and IE8 Assets
- Grails Asset Pipeline: URLs with cache digest in file name within static assets
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
s3_direct_uploadis provides form helper methods to upload images to s3 directly. like thiss3_uploader_form. It just reduces your jquery_file_upload and s3 configuration.But you can still upload image to your local file system. Using simple
form_tag. i.e. When you want to upload images to s3 uses3_uploader_formsyntax and when you want to upload images to local file system then use simpleform_tagor any other rails provided form syntax.For uploading images using ajax use
remotipartgem with simple form syntax.