Problem with mod_rewrite

Upload core product.
Post Reply
forumee
Posts: 5
Joined: Thu Jan 23, 2014 9:48 pm

Problem with mod_rewrite

Post 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.

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: Problem with mod_rewrite

Post 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

Post Reply