I'm using cloudinary to allow users to upload files with many different extensions from .docs and .pdfs to .jpgs and .pngs, so i decided to use the aspose add on. However, I am having an issue with allowing users to upload the different files with the same uploader.
I'm using client side uploading with carreierwave in Ruby on Rails, so i have
<%= f.cl_image_upload(:attachment, allowed_formats:["jpg", "jpeg", "pdf", "png", "doc", "docx"], :resource_type => 'auto', :raw_convert => 'aspose') %>
to allow users to attach their files.
So, i was wondering if there was a way to automatically detect if its a raw file or not, and only call :raw_convert => 'aspose' when its a raw file.
Please sign in to leave a comment.