Alberto,
Why not take a different approach, simply upload the file where it goes and then copy it where you want it and then delete the file.
The embed point is Routines -> PostInsert -> Start and the code something like this:
copy(p_web.gsv('PATH') & '\web\'&clip(fil:name),'\\'&clip(GLOD:Server)&'\eds\c\'&left(format(Image:ImageNo,@n_8))&clip(ExtType))
remove(p_web.gsv('PATH') & '\web\'&clip(fil:name))
OR
copy(p_web.gsv('PATH') & '\web\'&clip(fil:name),'WHEREVER YOU WANT TO COPY THE FILE TO')
remove(p_web.gsv('PATH') & '\web\'&clip(fil:name))
fil:name for some reason is always '\uploads\filename.ext'. Hope this helps.
Cheers
Charl