You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
So to bypass PHP when serving the images, we could create symlinks for the aliases. There would be a symlink called foo.jpg that points to the hash, this way we don't have to ask the database what foo.jpg points to.
So to bypass PHP when serving the images, we could create symlinks for the aliases. There would be a symlink called foo.jpg that points to the hash, this way we don't have to ask the database what foo.jpg points to.
Reply to this email directly or view it on GitHub: #2 (comment)
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.
The text was updated successfully, but these errors were encountered: