for file in files: with open(f'/images/file', 'rb') as img: response = requests.post(filedot_api, files='file': img) jpg_link = response.json()['direct_url'] links.append(jpg_link)
Have your own method for managing image links between hosting sites and asset systems? Share it in the comments below. ams more filedot links jpg link
Working...
X
We process personal data about users of our site, through the use of cookies and other technologies, to deliver our services, personalize advertising, and to analyze site activity. We may share certain information about our users with our advertising and analytics partners. For additional details, refer to our Privacy Policy.
By clicking "I AGREE" below, you agree to our Privacy Policy and our personal data processing and cookie practices as described therein. You also acknowledge that this forum may be hosted outside your country and you consent to the collection, storage, and processing of your data in the country where this forum is hosted.