Default folder to store images in osCommerce - oscommerce

What is the default image folder where product images are stored for the osCommerce shopping cart store? I'm a new user.

The directory catalog/images is where regular images of products are stored.

Related

Cloudinary upload image from Django admin panel from two or more databases

everyone. I decide to use Cloudinary for storing images.
This is my model field with image:
avatar = models.ImageField(upload_to='avatar/', default='avatar/default.png', blank=True)
All works fine for me, but I have one little issue.
When I uploaded the image from admin panel, cloudinary upload it to my cloudinary folder 'avatar' with some modified name, for example: 'july2022_kda4th' or 'july2022_aidkdk'
But when I uploaded this image from admin panel of another database (production), cloudinary upload the image with another name. So, I have two similar images in cloudinary. It's not convenient.
How can I fix it?
By default, if you don't supply a public_id in the upload API call, a random string is assigned to the asset. You can read more here: https://cloudinary.com/documentation/upload_images#public_id.
It sounds like you want to use the asset filename as the public_id so what you can do is:
In forms set use_filename=true and unique_filename=false as described in this link
OR if above is not working you can
Create an upload preset https://cloudinary.com/documentation/upload_presets
Enable Use filename or externally defined Public ID: option
Disable Unique filename:
Set this preset as the default upload API/UI (https://cloudinary.com/documentation/upload_presets#default_upload_presets) or include this upload_preset in your upload call

How to set an image field in django to an image file on S3?

I have a django model (Page) with an image field, with files stored on S3. I can upload and delete images just fine using boto3, but I'm trying to implement a gallery feature, where the user can select from a series of photos already on S3 and then set the Page's image to the selected photo.
It seems that if i do page.picture.save(....), I need to pass the filename and the content for it to upload the file to S3 again, but this seems a bit redundant since the file is already on S3. Is it possible to just point the image field to the relevant src?

I'm unable to add new product images to new products in opencart

I'm trying to add new products to my website which is in opencart V2.2.0.0 and is using the Journal 2 Theme Version 2.7.1.
When I try to add new images to the gallery they are added but they're not showing on the website frontend neither are they appearing on the admin dashboard. I have tried doing resizing the image and kept the size at around 200kb and the dimensions for the images I'm adding are 1000 x 1000 pixels.
Does anyone know what the issue might be?

How to set the source of an image field dynamically in a multisite environement in Sitecore?

I have a multisite instance in Sitecore using SCORE and I would like to set the source of a common template image field to point to its corresponding media library folder.
Example:
My instance has Site A and Site B
In Site A, if a user clicks on browse of an image field it should open the Site A media folder and the same for Site B.
By default, SCORE does not provide this possibility. If you want that the site media specific container is selected, you will need to implement a custom field with a custom token in order to resolve the datasource of the media path

How to store my app-generated photos in subfolders / subalbums

I am creating a sample app to exercise with the FB Graph API using Javascript.
What I want to do is, let the user add a text entry on a diary, and attach an image. I'd store the text entry on my server, and post the image (or multiple images) on the default app photo album.
But, I don't want all my app pictures to be grouped together, I'd like to categorize them.
I.e. I want to post entries about my garden, and an album for every tree / flower I have.
Do you know if (and if so, how) can I create a sub-album inside by app album?
There is no such 'sub album' functionality, but there's no reason your app can't create different albums via the regular API and use those for the uploads