Page 1 of 1

Problem with mod_rewrite

Posted: Thu Jan 23, 2014 10:08 pm
by forumee
Hello,

I've just purchased JFileUpload and I'm trying to make it work.

My ProFTPd server has mod_rewrite activated, cf. proftpd.conf file :

Code: Select all

<IfModule mod_rewrite.c>
RewriteEngine on
RewriteMap replace int:replaceall
RewriteRule ^(.*) "${replace:/$1/ /_}"
RewriteRule ^(.*) "${replace:/$1/à/a}"
RewriteRule ^(.*) "${replace:/$1/à/a}"
RewriteRule ^(.*) "${replace:/$1/À/A}"
RewriteRule ^(.*) "${replace:/$1/À/A}"
...
However, when I upload a file with the JFileUpload FTP applet, only " " is replaced by "_", but "à" is not replaced by "a".

(whereas this mod_rewrite function works perfectly when I upload the file with a standard FTP client like Filezilla)

For exemple a "ob cà5928.jpg" file, instead of becoming "ob_ca5928.jpg" on the server, becomes "ob_c"

How can I make mod_rewrite fully work with JFileUpload ?

Thanks in advance.

Re: Problem with mod_rewrite

Posted: Mon Jan 27, 2014 6:42 pm
by support
I'm not sure mod_rewrite will help, try a regular expression in JFileUpload template parameter.
viewtopic.php?f=2&t=102&p=467&hilit=template+regex#p467