upload-files

Upload local files to a Gradio server via POST requests to generate public URLs.

17|2|Updated Jun 5, 2025
One-click install
npx skills add https://github.com/AI-Riksarkivet/ra-mcp --skill upload-files
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: upload-files
Source: https://github.com/AI-Riksarkivet/ra-mcp/tree/main/plugins/ra-mcp-tools/skills/upload-files
Command: npx skills add https://github.com/AI-Riksarkivet/ra-mcp --skill upload-files

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill enables the uploading of local files or user attachments to a Gradio server, making them accessible via public URLs for use with other tools.

Core Features & Use Cases

  • File Hosting: Converts local files into publicly accessible HTTP/HTTPS URLs.
  • Tool Integration: Prepares files (images, XML) for downstream tools like HTR transcription or document viewers.
  • Use Case: You have several scanned document images that need to be transcribed by an AI. Use this Skill to upload them, get URLs, and then pass those URLs to the transcription tool.

Quick Start

Upload the local file named 'document.jpg' to the Gradio server.

Frequently Asked Questions about upload-files

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I upload local files to a Gradio server to get a public URL?

To upload local files to a Gradio server, you make a direct POST request to the specified Gradio API endpoint with your file attachments. This process converts local files into publicly accessible HTTP or HTTPS URLs.

Can I upload images and XML documents to Gradio for HTR transcription?

Yes, you can upload images and XML documents to a Gradio server. This generates public URLs that prepare your files for downstream tools like HTR transcription or document viewers.

How does file hosting on a Gradio server work for user attachments?

File hosting on a Gradio server works by accepting local files or user attachments via a POST request. The server then hosts these files and provides public URLs so other tools can access them over HTTP or HTTPS.

What types of files can I upload to a Gradio server for transcription tools?

You can upload scanned document images, XML, and other document types to a Gradio server. Once uploaded, you receive public URLs to pass directly into your AI transcription or viewing tools.

Do I need to use POST requests to upload files to a Gradio server?

Yes, uploading files to a Gradio server requires making direct POST requests to a specified Gradio API endpoint. This is the necessary mechanism to transfer your local files and generate accessible URLs.

Why do I need public URLs for my local files before using transcription tools?

You need public URLs because transcription and viewing tools require web-accessible links to process your documents. Uploading local files to a Gradio server generates these HTTP or HTTPS URLs for tool integration.