w3ui icon indicating copy to clipboard operation
w3ui copied to clipboard

w3console: Dropped files should upload immediately

Open jchris opened this issue 2 years ago • 4 comments

For many cases the upload will be faster than the time it takes to focus and click the upload button.

Also the case where you want to compose an upload from multiple drops in the browser is not one we want to support. Too many edge cases.

I can see needing an undo or delete button, but that can be after mvp

jchris avatar Jan 20 '23 17:01 jchris

I was thinking we could cronch the file into a CAR on file drop, so we get the CID early, and then let the user trigger the upload manually, to reinforce the "it's your CID, you made it, we can store it for you if you want". The upload step would be faster with a pre-baked CAR... but yeah, we could also just straight upload it on drop.

olizilla avatar Jan 24 '23 11:01 olizilla

I just will forget to click it, because I would think it is already done

jchris avatar Jan 25 '23 00:01 jchris

I think it'd be pretty straightforward to add an autoupload option to the uploader components. Still leave the question of what the default should be and TBH I'm very undecided - not automatically uploading is probably a bit more in line with the way HTML form-based UX usually works so soft preference for defaulting to no autoupload, but you could push me off this position pretty easily...

travis avatar Jan 25 '23 19:01 travis

I guess if I'm doing a form submit on a general-purpose website I agree that helps capture intent. For uploading on a file upload website, personally I think it makes the website into the tool people are seeking, moreso if the upload is immediate. Eg the tool is more ready-to-hand if the upload is automatic.

jchris avatar Jan 26 '23 15:01 jchris