-
I am trying to upload some files and specify their names, which are relative paths to a certain directory. res = await self._http.post(f'{_config.hub_address}_f/', headers={'Wave-Directory-Upload': "True"}, files=[
('files', ('core.py', open('setup.py', 'rb'))),
('files', ('core2.py', open('setup.py', 'rb'))),
('files', ('something/random.py', open('setup.py', 'rb'))),
]) However, I get only basenames when retrieving the response for some reason. Any ideas on what I might be doing wrong? Edit: This behavior matches the |
Beta Was this translation helpful? Give feedback.
Answered by
mturoci
Jan 12, 2023
Replies: 1 comment
-
Further investigation revealed it's an HTTP thing. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
mturoci
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Further investigation revealed it's an HTTP thing.