Open sts-ryan-holton opened 8 months ago
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:
{
file: file,
notes: '',
start_processing_at: 'YYYY-MM-DD HH:mm:ss',
priority: 50
}
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? :eye:
Have you found the solution ?
I ended up just passing it as a request header, not ideal for anything larger
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 happening