Can spaces owner access /tmp folder and see whats people been uploading in their spaces?

can spaces owner access /tmp folder and see whats people been uploading in their spaces?

If a Space owner has deliberately written code in advance to access uploaded files, or if the app’s safeguards are too permissive, this may be possible in some cases. By default, however, accessing files in /tmp retrospectively is not straightforward. Personally, I also think it’s generally wise to avoid entering sensitive personal information when using online applications or services created by someone else:


Space owners do not have a built-in file browser that lets them inspect everything users have uploaded.

There are a few important exceptions:

  • Application code: The Space processes uploaded files, so its owner can write Python code to inspect, log, copy, or retain them.
  • Gradio file access: Uploaded files may be available through Gradio’s cache URLs. Settings such as allowed_paths can expose additional files, potentially to anyone who knows the URL.
  • Dev Mode: If already enabled, the owner can use SSH to inspect the running container, including files still present in /tmp.

However, enabling Dev Mode or modifying the Space afterward generally involves restarting or rebuilding it. Since ordinary Spaces storage is ephemeral, files from the previous runtime are normally lost.

The exact lifetime of temporary files during a running session is not guaranteed. Gradio’s cache cleanup, application behavior, and container lifetime can all affect it.

In short: A Space owner cannot necessarily retrieve past uploads after the fact, but users should never assume their uploaded files are private from the Space owner.

References: