stable-diffusion-webui icon indicating copy to clipboard operation
stable-diffusion-webui copied to clipboard

Image saved to temp folder causing image to not appear in UI when proxied through Apache on Windows

Open StillTravelling opened this issue 3 years ago • 1 comments

An update to Gradio 3.5 has caused newly created images to show from: http://localhost:7860/file=C:/Users/xxxx/AppData/Local/Temp/tmp_csv789x/tmp3uq2vw00.png

However this does not work if hosted behind a proxy.

GET https://xxxxxxx/file=C:/Users/xxxxx/AppData/Local/Temp/tmp_csv789x/tmp9fvirt0b.png 403 tmp9fvirt0b.png:1 GET https://xxxxxxx/file=C:/Users/xxxxxx/AppData/Local/Temp/tmp_csv789x/tmp9fvirt0b.png 403 Image (async) v @ index.9828d028.js:1 c @ index.b5bd335e.js:1 c @ index.b5bd335e.js:1 p @ index.b5bd335e.js:1 p @ index.b5bd335e.js:1 Jc @ index.9828d028.js:1 p @ Block.fae874df.js:1 p @ Block.fae874df.js:1 Ti @ index.9828d028.js:4 me @ index.9828d028.js:4 Promise.then (async) ue @ index.9828d028.js:4 Ni @ index.9828d028.js:4 (anonymous) @ index.9828d028.js:4 ce @ index.b5bd335e.js:1 d @ index.b5bd335e.js:1

StillTravelling avatar Oct 15 '22 12:10 StillTravelling

Apache doesn't like the colon character : for the src on windows. Can the temp files be put into a relative folder?

StillTravelling avatar Oct 15 '22 13:10 StillTravelling

Closing as stale.

catboxanon avatar Aug 03 '23 16:08 catboxanon