Skip to content
LazyFrog

fs_import

Saves files you attached in the chat (photos, PDFs, spreadsheets) into your project, so your AI can use them on your site.

Save attached files · Makes changes

Save files from this chat into the project: the user's attachments (their photos for the site), or an image your app's image generation made in this chat. For an image you made, always pass generated: true (anything you created, not a file the user attached); leave it out only for the user's own files. Give files: the attachments or images, as your app passes them (ChatGPT fills in each one's download_url and file_id); never for web addresses. They go into data/import (path: another folder under data/), which isn't served, never over a file already there (a second cake.jpg becomes cake-2.jpg), and are recorded as the user's own (with generated: true, as made from a prompt). Images (HEIC too), PDFs, documents, video and other files of up to 50 MB each, 20 files and 200 MB a call; programs, scripts, HTML pages and SVGs with scripts are refused. Returns each saved file's path, size and, for an image, its real width and height; then images view (paths: ["data/import"]) to see which is which, and images place to put each into its slot. Called without files (your app doesn't pass attachments), it returns the portal's upload link to give the user.

For your AI: this page as Markdown · llms.txt