Title: Uploading files through python
Last modified: September 1, 2022

---

# Uploading files through python

 *  Resolved [babashrug](https://wordpress.org/support/users/babashrug/)
 * (@babashrug)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/uploading-files-through-python/)
 * Hi Team,
 * I’m looking to have files uploaded to our WordPress and sorted into the proper
   title, alt tags, media tags, and media categories automatically through python.
 * I know alt tag and title editing is available through the metadata.json but idk
   about tags and categories.
 * Is this all possible, and if so how?
 * And another question: does the custom URL refer to setting a custom URL for the
   image? How does it work exactly?
    -  This topic was modified 3 years, 9 months ago by [babashrug](https://wordpress.org/support/users/babashrug/).

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Support [elviiso](https://wordpress.org/support/users/elviiso/)
 * (@elviiso)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/uploading-files-through-python/#post-15974039)
 * Hi [@babashrug](https://wordpress.org/support/users/babashrug/)
 * For the tags and categories, currently, there is no way to add them to the images
   automatically as you upload them using the script. You will need them to be first
   uploaded before you can add the tags and categories.
 * For the second question, the custom URL enables you to add a URL that can be 
   configured and used later on when the image is added to the gallery whereby the
   visitor can be redirected to the URL when they click on that image, or the URL
   can be opened in the lightbox when the image is clicked.
 * Kind regards,
    Elvis.
 *  Thread Starter [babashrug](https://wordpress.org/support/users/babashrug/)
 * (@babashrug)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/uploading-files-through-python/#post-15974620)
 * Hi
 * Thanks for your prompt response!
 * What about after they’ve been uploaded?
 * For example if we upload them to specific folders or by using formulas from the
   file name that correlate to the categories and tags they should be in, and then
   sweep checking media without categories and tags after uploading to automate 
   this?

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Uploading files through python’ is closed to new replies.

 * ![](https://ps.w.org/foogallery/assets/icon-256x256.gif?rev=2602542)
 * [Photo Gallery by FooGallery : Responsive Image Gallery, Masonry Gallery & Carousel](https://wordpress.org/plugins/foogallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/foogallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/foogallery/)
 * [Active Topics](https://wordpress.org/support/plugin/foogallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/foogallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/foogallery/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [babashrug](https://wordpress.org/support/users/babashrug/)
 * Last activity: [3 years, 9 months ago](https://wordpress.org/support/topic/uploading-files-through-python/#post-15974620)
 * Status: resolved