-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Should have an images column.
User can put an path:
*absolute path to the image
*a remote URL to download
*or a relative path to the project root
Or the user can use the sha1 hash of an existing image, or the first 8 characters of an existing image, ala git commit hashes.
Multiple images separated by comma. Prefixing an image with a minus sign instructs the system to unlink that image (must store the original filename of the image before its renamed to the hash, so they can remove it by referencing its original filename). It doesn't matter if two image hashes are referenced by the same original filename because its not deleting the image off disk, its just unlinking the image from that particular product. If it unlinks two images from that product because they had the same original filename, its whatever... just make sure we notify the user that that happened. They can always restore the unlinked image.