mirror of
https://github.com/gradio-app/gradio.git
synced 2025-02-17 11:29:58 +08:00
Fix uploaded file wasn't moved to custom temp dir at different disks (#6565)
* Fix uploaded file wasn't moved to custom temp dir at different disks * add changeset * Update routes.py --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
This commit is contained in:
parent
315659817e
commit
9bf1ad43ea
5
.changeset/ready-times-draw.md
Normal file
5
.changeset/ready-times-draw.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
"gradio": minor
|
||||
---
|
||||
|
||||
feat:Fix uploaded file wasn't moved to custom temp dir at different disks
|
@ -783,7 +783,7 @@ class App(FastAPI):
|
||||
os.rename(temp_file.file.name, dest)
|
||||
except OSError:
|
||||
files_to_copy.append(temp_file.file.name)
|
||||
locations.append(temp_file.file.name)
|
||||
locations.append(str(dest))
|
||||
output_files.append(dest)
|
||||
if files_to_copy:
|
||||
bg_tasks.add_task(
|
||||
|
Loading…
Reference in New Issue
Block a user