I'm allowing members to upload images. Is there a way to tell EE that the uploaded files should be assigned a randomized filename? I need this feature for privacy reasons and to prevent collisions.
I'm using Safecracker and Matrix, if that matters.
Assets and Channel Images both automatically prevent file-name collisions on upload, and both are Safecracker compatible.
For privacy, you can obfuscate the name (and even make it time-sensitive) using Channel Images' Locked URL tags (only for files in Channel Images), or using the Link Vault plugin (for any file, anywhere).
Photo Frame does this, and much much more. You can define any filename format you want. It works within Safecracker and is compatible with Matrix and Assets.
Sample Filename Format:
{random_string}-{height}-{width}.{extension}
So this would generate a file called, "s2f4leQs-450-250.png"
{exp:ce_img:single src="/images/example/cow.jpg" max="100" crop="yes"}
-- when will that image be created? When the page is viewed? Will it recreate it if the page is viewed again? It doesn't seem to me that it's optimal to do it that way.