File Uploads — Aquilia Documentation
Comprehensive guide and documentation for File Uploads in the Aquilia framework. View API reference, examples, and implementation patterns.
Request / File Uploads File Uploads Aquilia handles multipart file uploads natively via UploadFile and FormData objects, providing automatic disk-spilling and sanitization mechanisms to keep memory usage bounded. UploadFile Representing a single uploaded file. It operates in two modes: in-memory (for files smaller than the threshold) and on-disk (temporary files for large payloads). API Fields Field Type Description , , ].map((row, i) => ( ))} # Read file content (in-memory or streamed from disk) content: bytes = await upload.read() # Stream chunks (useful for large files to avoid memory overhead) async for chunk in upload.stream(): await process(chunk) # Save to destination path on disk saved_path = await upload.save("/dest/path/image.png", overwrite=True) FormData The parsed representation of form fields and files. Method Returns Description , , , ].map((row, i) => ( ))} Data Structures )
Go to Homepage