开发者

Rewriting file name on download (mod_rewrite)

I have a folder where the uploads are saved (/upload/0/)

When the file is uploaded, the program automatically renames the file for instance file1.jpg is uploaded as qzRTRWW.

How c开发者_Go百科an I rename automatically that file (not matter of the name) but I want to add an extension to it (jpg).

I have tested using a rewrite rule like this (in .htaccess)

RewriteRule /upload/(.*).jpeg $1 [L]

but without success.

I have testes in apache an lighttpd too.

Anyone ?

thanks a lot

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜