luis901101 / cloudflare

BSD 2-Clause "Simplified" License
12 stars 2 forks source link

Using TUS Protocol for large files stops upload and throws error. #6

Open ChristianConstantNel opened 1 year ago

ChristianConstantNel commented 1 year ago

Hi!

Thanks for an awesome package. When I'm using the TUS protocol I get the following error: Unhandled Exception: PathNotFoundException: Cannot open file,

The upload starts, but then throws this error about half way through.

luis901101 commented 1 year ago

Hi, you're welcome. That error is weird, please check the file is available during the time it requires to upload. I just tested the "Doing direct stream upload using tus protocol" from the package's integration tests and it worked as expected.

Note: my upload speed right now is less than 1 Mbs, so I can't run reliable tests on files too large, that's why the file in the test is around 13 MB large

Screenshot 2023-06-20 at 16 06 25

ChristianConstantNel commented 1 year ago

Hi,

Thanks for the response. I believe it had to do with my file picker. It seems to be solved now.

I'm running into another issue though.

There are two objects being created in my Cloudflare database. One is the actual video and another is the upload object.

The upload object stays in the pending upload state even when the video has been uploaded.

Screenshot 2023-06-21 at 09 57 34
luis901101 commented 1 year ago

How are you doing the upload? share the step by step and function calls you are using.