Adam Strzelecki wrote:
> I was recently doing some customization using with:
> 
> <upload base = "%p/%R.%0">
>   <copyFile file="__doc.%0" to="%p/%R.%0" />
> </upload>
> 
> Unfortunately I was getting bizarre errors on Windows on "copyFile" that 
> 2nd file is not relative with 1st one, I just realized that it is a 
> problem of %R having spaces.
> %p has all spaces and non-URL characters URL encoded, unfortunately 
> there's no %r that does the same.
> 
> So please provide in upcoming 4.0 if possible %n, %r, %e that are 
> properly URL-encoded equivalents for %N, %R, %E.
> 
> Currently I ended up with having:
> <copy files="__doc.%0" to="%P%S%R.%0" />
> instead.
> 
> But this disables possibility of using FTP or WebDav with my customization.
> 

--> No problem, you'll have %n, %r, %e, but in the release following 
4.0. Sorry, it is too late for 4.0: we should release it today.

--> Note that (assuming that %r has been implemented):

<upload base = "%p/%r.%0">
   <copyFile file="__doc.%0" to="%p/%r.%0" />
</upload>

is somewhat incorrect.

I think you mean:

<upload base = "%p/%r.%0">
   <copyFile file="__doc.%0" to="." />
</upload>

or:

<upload base = "%p/">
   <copyFile file="__doc.%0" to="%r.%0" />
</upload>

Reply via email to