Cloud storage upload & download
Let users upload files and images to the cloud and download or display anytime.
The problem today
Files only live locally; sharing means manual transfers and images can't be shown online.
What you get
- Drag/select upload for files and images
- Cloud storage with accessible links
- Auto image compression & on-demand display
Copy the whole block below and paste it into Codex. Replace placeholders like API keys with real values from the IFQ Cloud console.
You are a senior full-stack engineer. In my currently open local project, add "cloud storage upload & download" storing attachments in the cloud, accessible anytime.
[Features to build]
- Provide an upload entry supporting drag-and-drop and click-to-select, with progress.
- Store files in cloud storage with accessible links; auto-generate thumbnails for images.
- Limit file size and type; show friendly messages when exceeded.
- Support viewing, downloading, deleting uploaded files; deletion also cleans up the cloud.
[Connect to IFQ Cloud]
- API base https://api.cloud.ifq.ai, official SDK `jieshi-cloud` (if unavailable, use plain HTTPS equivalently and note the endpoint in a comment).
- Secrets via environment variables, never hard-coded: JIESHI_CLOUD_API_KEY, JIESHI_CLOUD_PROJECT_ID; generate `.env.example` with both, noting "get real values from the IFQ Cloud console and replace".
- All placeholders; without real values, run on placeholders and print a hint on where to replace them.
[Engineering requirements]
- Read the existing structure and stack first; follow current conventions, add only necessary files, leave unrelated code untouched.
- Network calls: timeout + graceful fallback; friendly errors, never crash.
- Demo / mock mode: the main flow runs on sample data without keys.
- Include a minimal runnable self-test with run instructions.
- On completion list: files changed / how to start / how to roll back.
Ask before any decision point.
*— [ifq.ai](https://work.ifq.ai/) · AI-augmented. Full-stack crafted*