Replies: 3 comments
-
@adw0rd any thoughts? |
Beta Was this translation helpful? Give feedback.
-
Can you send examples of methods for which you would like to implement BytesIO? If you want to offer something, then send your PR |
Beta Was this translation helpful? Give feedback.
-
@adw0rd and @EverythingSuckz , the more I look into making a PR the more it seems like accepting only using paths inside those upload methods is critical in the functioning of the library, at least for the video upload parts ( I recommend users write their own cleanup scripts after the file has been uploaded... thank you for your time |
Beta Was this translation helpful? Give feedback.
-
My workflow forces me to stream files from the internet to
BytesIO
then modify them a bit (usingPIL
andMoviePy
) then upload them.But as things currently stand, I have to first save the files to local storage then pass that path to the upload methods'
path
argument. This is not ideal if I'm deploying my app to a remote machine. I wouldn't have to do this if the methods readily acceptedBytesIO
type.I tried looking into the project myself, seems like changing some assert statements and with blocks in the respective
rupload
methods will do the trick (I couldn't find a way to change the same forthumbnail
parameter?).Is this worth submitting a pull request? I don't exactly know since its highly workflow dependent.
If you could suggest any better solution for my use case, that'd be great.
Thanks for your time.
Beta Was this translation helpful? Give feedback.
All reactions