GithubHelp home page GithubHelp logo

Comments (3)

sffc avatar sffc commented on May 19, 2024 1

For now, I recommend uploading all files to a default central location and then moving them to where you actually want them when done.

The example in the docs is not safe and should be removed. I'll do that soon.

from socketio-file-upload.

TroyWolf avatar TroyWolf commented on May 19, 2024

Related. I'm trying to set the uploader.dir in the uploadValidator similar to the documentation example:
https://www.npmjs.com/package/socketio-file-upload#instanceuploadvalidatorevent-callback

I can debug output the value of uploader.dir and it is what I want, but the files are not uploaded into that directory. In fact, they go nowhere (apparently) unless I set uploader.dir "globally". (Just after instantiation to apply to all files.)

So I'd like to see setting upload.dir in uploadValidator work.

Perhaps I misunderstand @vote539 , but allowing the upload dir to be specified per file suggests the client sends this value. That seems like a not-so-secure thing to do.

from socketio-file-upload.

sffc avatar sffc commented on May 19, 2024

I published v0.6.2 which allows you to use the "saved" event on the server to move the file.

from socketio-file-upload.

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.