Overview
This guide demonstrates how to use Smooth to upload files to websites.1
Upload the file
You can use the
upload_file()
method to upload files that you will pass on to Smooth.Python
When uploading multiple files, we recommend using meaningful file names to help Smooth disambiguate their content.
An optional
purpose
can be given to further highlight the role of the file (i.e., purpose="the bank statement pdf"
).2
Run the task
Run your task using the The agent will navigate to the website, upload the file, and return the alt text.
files
parameter.Python
3
(Optional) Delete the uploaded files
Once the task is finished and the uploaded files are not necessary anymore, you can delete them as following:
Python
This step is optional, as files are automatically removed after 24 hours.
Best Practices
- Use Descriptive File Names: Choose meaningful names for your files to make it easier to identify their content later.
- Check File Size Limits: Ensure your files do not exceed the maximum size limits set by the platform you are uploading to.
- Include File Types: When specifying a file name, make sure to include the file extension, such as
.pdf
or.png
Community
Join Discord
Join our community for support and showcases