Skip to main content

How do I use Message Logs?

Comments

3 comments

  • figil65530

    this is a comment

    0
  • figil65530

    nvm i changed 2

    0
  • figil65530

    Hi, 
    Solutions on thread does not work for us.

    url = Cloudinary::Utils.private_download_url(public_id, format, resource_type: :raw)
    download = Cloudinary::Downloader.download(url)


    Also we want to download our files as an attachment (just download file not to view) 

    Cloudinary::Utils.private_download_url("x.csv", :csv, resource_type: :raw)

    when you generate a image URL with the upper command (that you suggested) and browse to the url it opens on browser tab, we don't want that and when if it is non image file the file name changes to 'download.csv' not the original file name that we uploaded.


    The probem we are having is when downloading non image files (csv, xlsx, doc etc..) that generated with following command

    Cloudinary::Utils.private_download_url(public_id, 'csv', :resource_type => :raw, :expires_at=>FILE_EXPIRE_DURATION, :attachment=>true)

    WITH ':attachment=>true' option is not working.
    It used to work before now it is not working.


    (Actual file uploading code

    Cloudinary::Uploader.upload("#{file.path}", public_id: identifier, folder: ROOM_FILE_BUCKET, :resource_type => :raw, :type=>'private', :filename_override=> original_filename)
    )
    0

Please sign in to leave a comment.