I have currently a List of Strings (str) which hold the local path to the image for example it is: '/home/rene/development/scrapping/images/_0_b87e0.jpg'
This is one of the strings inside of the List listing.photos.
The problem I'm having is that I want to upload it to Firebase storage, I have this code:
for image in listing.photos:
imageFile = Image.open(image)
outfile = imageFile.save(imageFile)
of = open(outfile, 'rb')
bucket = storage.bucket()
blob = bucket.blob('')
blob.upload_from_file(of)
blob.make_public()
photos.append(blob.public_url)
I get the error ValueError: unknown file extension
How can I upload the images using the path to Firebase?
Also if possible how can I add a route to the images for example I want to add to have the x amount of images in Firebase Storage with the route /lisitingImages/(A unique Id maybe a ref Id)/
Any Ideas on how to upload with just the path to it?
Kind Regards