GithubHelp home page GithubHelp logo

Downloading Files about paperplane HOT 15 CLOSED

pennmanor avatar pennmanor commented on August 11, 2024
Downloading Files

from paperplane.

Comments (15)

4ndr3w avatar 4ndr3w commented on August 11, 2024

I think this is due to the uploads folder not being committed because it was empty. Try creating a folder called uploads in the root of the project

from paperplane.

 avatar commented on August 11, 2024

I ran into a new issue where the browser can not display images, or load PDFs.
screen shot 2013-07-19 at 11 20 39 pm
screen shot 2013-07-19 at 11 20 52 pm

from paperplane.

4ndr3w avatar 4ndr3w commented on August 11, 2024

I built this feature on my netbook which was running windows. Some stuff didn't run right under *nix.
The content of any document you uploaded was the string "undefined", so that's why stuff appeared corrupt for you.

This should be fixed now

from paperplane.

 avatar commented on August 11, 2024

I am still running into these errors, here is the log
screen shot 2013-07-19 at 11 35 34 pm

from paperplane.

4ndr3w avatar 4ndr3w commented on August 11, 2024

What is inside the file if you try to open it from finder?

from paperplane.

 avatar commented on August 11, 2024

When opened with Finder:
screen shot 2013-07-20 at 12 00 28 am
And as plain text:
screen shot 2013-07-20 at 12 01 39 am

from paperplane.

4ndr3w avatar 4ndr3w commented on August 11, 2024

So it contains image like binary stuff but it's corrupt?

from paperplane.

4ndr3w avatar 4ndr3w commented on August 11, 2024

Is the file at the tmp location in the debug output corrupt too?

from paperplane.

 avatar commented on August 11, 2024

I guess so. PDFs can open, but with no content inside:
screen shot 2013-07-20 at 12 04 19 am

from paperplane.

 avatar commented on August 11, 2024

How can I check that?

from paperplane.

4ndr3w avatar 4ndr3w commented on August 11, 2024

In your screenshot, the object has a path property. Its like /tmp/g34gg5g4gh45t435g34g
open that and see if it works

Basically what the server does is open the tmp file that got uploaded and resave it into the uploads folder

from paperplane.

 avatar commented on August 11, 2024

That loaded fine
screen shot 2013-07-20 at 12 10 47 am

from paperplane.

4ndr3w avatar 4ndr3w commented on August 11, 2024

Something probably gets butchered when it coverts it to a string, i'll have a fix in a few secs

from paperplane.

4ndr3w avatar 4ndr3w commented on August 11, 2024

Commit pushed

from paperplane.

 avatar commented on August 11, 2024

That did the trick!

from paperplane.

Related Issues (1)

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.