-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UploadButton returns the wrong path #3790
Comments
Even the official example also has this bug, upload the file and then download it again becomes a 0k file |
Hi @xujipm @AscendantAI-Robbie we have a fix of this in the works in #3782 |
If I need to use this upload function urgently now, how should I operate it? |
This has not exactly been fixed in gradio3.25.0. The file gets uploaded to C:\Users\user\AppData\Local\Temp\randomfolder along with a temp file on each click. There are several problems with this:
|
Hi @AscendantAI-Robbie, I believe issue #3597 is referring to the points you've raised. We'll tackle that soon |
macos 13.3.1 (22E261) I have update to gradio3.25.0 but also got a wrong ptah Had the same problem on this version
|
Hi @xujipm sorry can you explain what the issue you are facing is? |
I upload a file on the web page, the path of the image returned by the upload network request is correct, and the file can be found in that path, but in the python script, the path returned by the upload method cannot find the file, so the code cannot obtain the image I uploaded document |
Ok going to reopen this issue and we'll take another look at it |
I'm very sorry, there is a bug in my code, this issue can be closed
there should be changed to
|
Ok good to know! |
Describe the bug
The wrong path is returned with and without preprocess enabled. With preprocess enabled, the path defaults to some system temporary directory. Without preprocess enabled, a dictionary is returned without enough information to derive the location of the image.
Is there an existing issue for this?
Reproduction
Run the UploadButton documentation
Screenshot
No response
Logs
System Info
Severity
blocking all usage of gradio
The text was updated successfully, but these errors were encountered: