Pass excel file to server side from file uploader?

I’ve seen similar issues brought up but they didn’t quite answer my issue.

I want to have a forum where a user can upload an excel file. That file is POSTed to a remote API. However, when I attempt to pass the file, I get "AnvilSerializationError: Cannot pass bytes object to a server function: arguments[1]".

How would I pass binary data from the front end to the backend? Or, what is the best way to get binary data from a file upload to a remote resource?

This might be a good place to start: Files, Media and Binary Data.

1 Like