Skip to Main Content
Builder.io Ideas
Created by Nick Hughart
Created on Apr 2, 2024

Upload API Extensions

The upload API is very limited currently. For context, I'm working on importing a large number of images from an existing system and having to basically just push them all into 1 folder as there is no means to dynamically create folders to help organize the images. It is also impossible to know if I've previously uploaded an image as there is no ability to lookup existing images currently in the Asset Library. So in a nutshell, I would be looking to see a full set of CRUD operations for files which should support both ID and filename based matching. Additionally it would be nice to have CRUD operations for folders as well.

  • Attach files
  • Tom Wolf
    Reply
    |
    Jun 18, 2024

    I too, am facing challenges around the limitations of the Upload API. I'm working on a migration and the process I'm following is to do a run with a limited set of data, work out any kinks, delete the data from Builder, improve the migration process and do another run. This is easy for content using the Write API because I simply record the IDs of the content I created and then delete it all before the next run. However, this doesn't work for images that I put into the Asset Library using the Upload API because there is no DELETE operation available.

    Having full CRUD operations available on assets in the Asset Library would be incredibly helpful in this context.

    My current workaround is to prefix the names of the images with a token and the unix timestamp of the run of the migration scripts, but that's pretty imperfect and we're ending up with a huge number of assets in the Asset Library. Add to this the fact that there is no mechanism for bulk operations in the UI and this starts to become a pretty urgent need.