dataloop-ai / dtlpy

Python SDK and CLI for Dataloop Platform
Apache License 2.0
16 stars 15 forks source link

Allow user to set the remote file name #3

Closed simeoncarstens closed 4 years ago

simeoncarstens commented 4 years ago

When uploading items to a remote data set, the remote file name seems to be fixed to the filename of local file or, when a URL is given, extracted from the URL via a simple some_url.split('/')[-1]. It would be much more user-friendly to allow the user to choose the remote filename themselves. This could be made optional with the default filename set the way it is now.

I ran into this problem when trying to upload an item by passing a Google Cloud Storage signed URL to Items.upload(). Related: #4

AharonDL commented 4 years ago

Hi @simeoncarstens , I reviewed and approved your PR, good job! I will try to add this to next dtlpy release (1.14.4) which should be next week. I will keep you updated. Thanks

simeoncarstens commented 4 years ago

You're welcome—glad to hear I could contribute something useful :-)