Giter Club home page Giter Club logo

Comments (8)

Mohakjuneja avatar Mohakjuneja commented on June 24, 2024

@lebedev-yury Have you been able to take a look at this yet?

from carrierwave-base64.

y9v avatar y9v commented on June 24, 2024

Hi! You are experiencing the problem only with pdf file uploads, or with other file types too?

from carrierwave-base64.

Mohakjuneja avatar Mohakjuneja commented on June 24, 2024

It's the same for images too. The content type saved is text/html
On 7 May 2016 23:39, "Yury Lebedev" [email protected] wrote:

Hi! You are experiencing the problem only with pdf file uploads, or with
other file types too?


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#31 (comment)

from carrierwave-base64.

y9v avatar y9v commented on June 24, 2024

You mean that when you open the url to the uploaded file, it shows the file as plain in the browser? If yes, this might be a problem with incorrect content-disposition, set in your amazon s3

from carrierwave-base64.

Mohakjuneja avatar Mohakjuneja commented on June 24, 2024

Hey @lebedev-yury ,
I'm publishing a sample repository to reproduce the above error. The storage, both file system and remote (S3) set the content type to text/plain. You can fork the repository to test it. Also, I don't set content-disposition anywhere. Please let me know if I'm doing it wrong.
Thanks

https://github.com/Mohakjuneja/Base64upload

from carrierwave-base64.

y9v avatar y9v commented on June 24, 2024

The base64 string when decoded is the absolute path to the original file on local machine.

I think you misunderstand the concept of base64 encoded uploads. How do you think your web application would get the file contents from your local machine, by just having the address?

Base64 string should contain the contents of the file, that you want to upload, encoded in base64 string

from carrierwave-base64.

Mohakjuneja avatar Mohakjuneja commented on June 24, 2024

Hi Yuri,
I apologise. I figured it myself just a few hours after writing to you. I'm
sorry about the trouble. I was fixated on it for over a week when I wrote
to you. Thank you for taking out time to see it!
On 18 Jul 2016 12:33, "Yury Lebedev" [email protected] wrote:

The base64 string when decoded is the absolute path to the original file
on local machine.

I think you misunderstand the concept of base64 encoded uploads. How do
you think your web application would get the file contents from your local
machine, by just having the address?

Base64 string should contain the contents of the file, that you want to
upload, encoded in base64 string


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#31 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AFBQvvn_I2ZxdJJb0hD8UBw6LAS5GP0Tks5qWyVUgaJpZM4IBgGb
.

from carrierwave-base64.

Mohakjuneja avatar Mohakjuneja commented on June 24, 2024

Hi @lebedev-yury ,
I'm trying to upload multiple files(20), with an average size of 700 KB using careerwave-base64 but my request times out. Is it suitable to upload them with this approach?

from carrierwave-base64.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.