Rank 2: Process
I tried this:
(python)
file = "some data of file passed by frontend/client"filepath = InputFile.from_bytes(file) print(filepath) response = storage.create_file('attachments', id_class.unique(), filepath)and it gives the appwrite.exception.AppwriteException: Empty file passed to the endpoint. error. I double checked the file var does contain the contents of the upload file from the frontend