You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure if this is a problem with the component, but I've had errors with files ending with hyphens (-------).
After some tests, I found the reason: the form-data boundary uses hyphens to delimit the data, so the last characters of the file are confusing the stream reader.
A possible solution I found to work around was to use the uploadBody object in the options to force the order of the fields, like this:
uploadBody: { chunk: null }
However, I think it's a good idea to change the order of the form fields:
I'm not sure if this is a problem with the component, but I've had errors with files ending with hyphens (-------).
After some tests, I found the reason: the form-data boundary uses hyphens to delimit the data, so the last characters of the file are confusing the stream reader.
A possible solution I found to work around was to use the uploadBody object in the options to force the order of the fields, like this:
uploadBody: { chunk: null }
However, I think it's a good idea to change the order of the form fields:
The text was updated successfully, but these errors were encountered: