-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to pass additional data with request #132
Comments
What kind of data are you looking to pass along with the file? My gut instinct is that this feels like it's probably out of scope for UpChunk itself, but if you're talking about relatively small amounts of data you could always just pass that along in headers like you're doing with the CSRF token. |
I'm trying to pass the following object:
It would be great if we could pass additional stuff cause my form contains more than just an upload element, so not sure how this would work without more field options? 👁️ |
Have you found the solution ? |
I ended up just passing it as a request header, not ideal for anything larger |
Thats unfortunate, thanks for the reply. |
Hi, I'm using this package in my Laravel 11 project using Livewire v3. I need to pass the file along with other data I have. How can I achieve this? My top level element with
x-data
on it contains:Note the
createUpload
function here. That's where it's happeningThe text was updated successfully, but these errors were encountered: