It is necessary to store uploaded files on a different server to the web app if you deploy with Heroku. I've had a look through some of their add-ons in the market place and many seem good for storage and delivery like Cloudinary and Filestack (although the latter is too expensive for testing with so I'm favouring Cloudinary). Moreover they provide out of the box image transformations which reduces the work my own server would have to do potentially. As for security I think I'm right in saying the file size restrictions they provide are reliable. The only concern I'm left with therefore is properly validating the file is indeed an image - my use case - or more generally the right file type. Cloudinary does have a file type restriction but I think this just checks the extension and doesn't actually validate the file content. It seems silly to have to upload the image to my heroku server first to check this before it gets sent to the storage service provider. Does anybody know of such a service?
File Type Validation Service
155 Views Asked by user1849962 At
1
There are 1 best solutions below
Related Questions in SECURITY
- Can MVC.NET prevent SQL-injection at razor or controller level?
- Forgotten password reset page: should the user need to enter a username/email as well?
- Dynamic roles list in CustomAuthorize ASP MVC
- Access roles from multiple applications
- How to Fix TLS CBC Incorrect Padding Abuse Vulnerability on Windows 2003 Server
- Evernote Web Clipper and Content Security Policy
- Invalidate user credentials when password changes
- Spring Boot MVC non-role based security
- Correct Captcha behaviour on error
- Is macro more secure than static const if I don't want someone to know or change the hardcode value?
- In Android, ensuring only pre-decided users can only use the app
- Authenticating plain text passwords against md5 hash in DB using Apache Shiro
- Symfony2 - handle HTTP/Entity user access restrictions
- Client side computation without exposing code?
- searchable row level encryption using java?
Related Questions in HEROKU
- NoMethodError: undefined method `update_average_rating' for nil:NilClass
- Using Amazon KMS service on Heroku
- How to have Heroku build my development branch on a staging server?
- Heroku not fetching from DB when scheduler running
- Search for a key in django.core.cache
- Ruby app fails in https request on heroku.com
- Rails: NameError: uninitialized constant Rails::Application::YAML
- clojure worker-only app on heroku fails with Error R10
- Clockwork not logging to Heroku console
- Javascript working in development locally but not production on Heroku
- Heroku PostgreSQL Studio not finding databases
- Heroku : Username for 'https://git.heroku.com': git
- Pg backups curl latest dump from Heroku
- How do you deploy build artifacts to Heroku from Codeship?
- Custom validation message (in model file) that includes a path not working
Related Questions in CLOUDINARY
- Cloudinary Java direct upload BAD REQUEST error
- How can I make 2 uploader to point to 1 cloudinary file when using carrierwave?
- Keystone and Cloudinary
- Upload image to Cloudinary and generate a low-res version as a different URL at the same time
- Cloudinary Change Public ID
- Flask+Cloudinary upload error on pythonanywhere
- RestClient Behind Firewall
- Dropzone signed direct upload to Cloudinary
- How to add new attachinary image to an instance instead of replacing the whole array in Rails 5
- How to send file parameter to Cloudinary post request in angular2
- Attachinary not allowing submit after upload Rails
- Meteor and Cloudinary - Callback not firing
- Cannot upload images to the cloud using Cloudinary(paperclip) gem - Rails
- Base64 image compression before sending it to Cloudinary
- Upload Images to cloudinary directly from browser
Related Questions in FILE-SECURITY
- Unable to set write permission on file
- How exchange files securely?
- Prevent user from accessing the uploaded file
- Web-hosted file authorization
- How to prevent getExternalFilesDir (String type) from creating directory
- How do I hide xml file?
- How secure storage apps woks
- take ownership of a file c#
- Visual Studio Deployment Package Change File Security
- What type of file is encrypted by EncryptedFile
- Can I put a password on the folder I created with File Manager?
- C# MemoryMappedFile - Different Processes for Read & Write
- set file permissions for c:\program files\company\app\file for all users
- FileSecurity not being set
- Apache custom module, where to put its own log file?
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?
Cloudinary performs the actual content validation and not just the extension check. You can test changing a file extension and uploading it to see if it fails. I changed the extension of jpg to png and to a doc and both of them uploaded as jpg to Cloudinary.