Giter Site home page Giter Site logo

Uploads are corrupt about ghup HOT 7 CLOSED

rrthomas avatar rrthomas commented on July 22, 2024
Uploads are corrupt

from ghup.

Comments (7)

wereHamster avatar wereHamster commented on July 22, 2024

Does this always happen, with all files? Or just certain files? What is your OS/ruby version?

from ghup.

rrthomas avatar rrthomas commented on July 22, 2024

As far as I can tell it happens with all files. I'm using Ubuntu 12.04 with ruby 1.9.3.0.

from ghup.

wereHamster avatar wereHamster commented on July 22, 2024

I've just merged (a rather old) pull request which slightly changes the way how files are uploaded. Maybe it fixes your problem. Can you try with the latest version?

from ghup.

rrthomas avatar rrthomas commented on July 22, 2024

This doesn't help (just tried), but it's not a surprise, as the file utility does exist on my platform, and files are always read as binary (the fixes are for non-UNIX platforms).

from ghup.

rrthomas avatar rrthomas commented on July 22, 2024

Scratch that: the update appears to make it work. Search me how it works, for the above reasons, but it seems to. (The first time I tried and failed I was running with the wrong version of github-upload.)

from ghup.

wereHamster avatar wereHamster commented on July 22, 2024

Could it be that files are not always read as binary, and that there is indeed a difference between #read and #binread even on unix?

from ghup.

rrthomas avatar rrthomas commented on July 22, 2024

If some kind of text encoding comes into play; I'm no Ruby expert.

from ghup.

Related Issues (9)

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.