pqina / filepond

🌊 A flexible and fun JavaScript file upload library
https://pqina.nl/filepond
MIT License
15.16k stars 825 forks source link

Chunked uploads #249

Closed jackttcoms closed 4 years ago

jackttcoms commented 5 years ago

Hi, do you have an ETA for chunked uploads? Thanks

SaphiLC commented 5 years ago

i'd love to know that too

rikschennink commented 5 years ago

Apparently, this works: https://github.com/pqina/filepond/issues/48#issuecomment-439448836

I don't have an ETA, some info:

I'm planning to extract the entire server component rename it to store and make it a separate package. This makes the FilePond core smaller, which is good for devs that upload files outside of FilePond but also allows for all sorts of different default stores.

FilePond.create({
    store: createRestStore({
        // store options
    })
})

You could then install from npm a createS3Store, createFirebaseStore, createLocalStore, etc.

jackttcoms commented 5 years ago

Thanks. That looks good but my only concern is the endpoint.

It looks like it reveals the file location folder? endpoint: "http://localhost:3000/uploads/",

To be honest, I will probably just wait for your update.

One other thing is with your uploader, is it possible to have multiple uploaders in one form? e.g. icon_img, preview_img, main_file

Thanks

rikschennink commented 5 years ago

@jackttcoms Yes, you can have multiple uploaders in one form.

endpoint: "http://localhost:3000/uploads/" this is the server end-point that handles the upload, it's not automatically the location the files are stored, it's wise to store the files somewhere else but that's up to the person implementing the backend.

jackttcoms commented 5 years ago

Hi, just thought I'd do a follow-up re: if you have an ETA yet?

Thanks so much.

rikschennink commented 5 years ago

@jackttcoms I'm sorry but no, I'm trying to find time. I also have a family to maintain so projects that yield actual income currently have priority, if you need this for a commercial project consider sponsoring FilePond (https://www.patreon.com/rikschennink). This would allow me to drop consulting work and eventually focus on my products full-time.

rikschennink commented 5 years ago

It's now available in version 4.7.0, I'll leave this open for now in case there is immediate feedback.

Docs: https://pqina.nl/filepond/docs/patterns/api/server/#process-chunks

rikschennink commented 4 years ago

Removed comments from and related to the company that promised to sponsor this feature (ams-ryanolson) as they didn't make the agreed payment.

Sopamo commented 3 years ago

@rikschennink wow that's really unfortunate. We are using this feature now, so feel free to send me an email with the specifics of what was offered for this feature and we might be able to reimburse you for the feature (or at least to some extend).

rikschennink commented 3 years ago

@Sopamo Hi Paul! Thanks for reaching out, I've sent you an email.

rikschennink commented 3 years ago

Paul came through and made the payment, thank you so much! 🙏