Comments (4)
Hello @hafijAsadMVN
Please check the network tab in the dev tools of your browser. I doubt that the file isnt being sent, after all, thats the whole point of Uploady :)
If it is being sent then you'd need to check/debug your server implementation. Notice that you use chunked uploads, so you need to ensure your server supports those.
I've played with chat-gpt a few times trying to see what it knows about Uploady, what I've seen isnt very ensuring. In other words, I wouldnt trust how it thinks Uploady should be used. It normally makes up stuff that doesnt exist in the API.
For example, you really dont need to specifiy the file as part of the params. The file is sent using FormData and that's done automatically by Uploady's internals.
from react-uploady.
Thanks for your quick response, my mistake, actually with the mentioned code of ChunkedUploady works fine, but I get error from this below code with TusUploady,
Error:
422: Unprocessable Content:
File field is required
If ChunkedUploady works fine with the same configuration then why TusUploady isn't working?
```
<TusUploady
destination={{
method: "POST",
headers: {
'Accept' : 'application/json',
},
url: "https://.../v1/assets"
}}
chunkSize={2142880}
// params={{ file }} Possibly this is the solution(I am not sure though), but how can I get file?
>
<UploadButton >Upload File</UploadButton>
</TusUploady>
```
from react-uploady.
TusUploady requires your server to implement the Tus protocol. Does your server support it?
from react-uploady.
moving to discussions
from react-uploady.
Related Issues (20)
- Retry doesnt "remember" SendOptions HOT 4
- Allow clearing a single preview using the UploadPreview methods HOT 1
- event UPLOADER_EVENTS.ITEM_FINISH gets fired only once when uploading multiple files HOT 3
- Canceled batch is processed the next time I choose a file HOT 5
- error in production: Cannot assign to read only property 'state' of object '#' HOT 3
- Not working with edge runtime HOT 5
- nextjs 13.4 issue with react-uploady - Expected server HTML to contain a matching <input> in <div> HOT 3
- Clicking to crop image using react-image-crop makes the image disappear HOT 1
- BATCH_FINALIZE and BATCH_FINISH listeners not calling HOT 7
- use*ProgressListener reports uneven completed percentage when files are different sizes HOT 2
- Support for userData in upload options HOT 4
- Make uploadResponse and uploadStatus accessible inside useItemErrorListener with ChunkedUploady HOT 4
- Upload function is not working for createUploader object from @rpldy/uploader package HOT 3
- Batch progress completion incorrect when using mock sender HOT 9
- cancellable hooks types dont allow asynchronousity HOT 1
- export `getPreviewsLoaderHook` for public use HOT 4
- UploadDropZone: Child Element Handling in onDragLeave has issues HOT 3
- Initial Post Request doesnt set header "Upload-Concat": "partial" when parallel is >1 HOT 3
- TusUploady + supabase storage gives ChunkedSendError: start byte 84715 is invalid. File size: 84715 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-uploady.