python-api icon indicating copy to clipboard operation
python-api copied to clipboard

Renaming the uploaded media file using file_name

Open kt-lowen opened this issue 3 years ago • 1 comments

Hi All!

I am working with this API (and it is fabulous), but I am running into issues with using s.add_media() where the name of the file on disk, even when I declare a file_name in my function call, uploads to syncsketch with the name on disk. Any help on this would be great! I think I am using it correctly, but any advice would be greatly appreciated! Below is the example of my function call:

s.add_media(review_id=review_id,filepath=path,artist_name=artist,file_name="katie_upload.mp4")

With this call and file_name declared, my video still uploads as "test.mp4" and not the name I expect (katie_upload.mp4)

Thanks so much!

kt-lowen avatar Sep 21 '22 16:09 kt-lowen

Hi @kt-lowen , thank you for letting us know. We're looking into this and will push a fix as soon as we can!

soccer99 avatar Sep 27 '22 21:09 soccer99

This is old sorry, but we have working direct to s3 multi-part uploads with upload_file() now. Have tested and confirmed the file_name param works on this new method.

soccer99 avatar Apr 02 '25 19:04 soccer99