How get filename over the upload throught web client?

we have a calculated property AAA:

dim path,filename

path = PropertyValues.SearchForProperty( 75 ).TypedValue.DisplayValue
filename = Mid(filename, InStrRev(path, "\") + 1)   --> get filename

Output = "FP_" & filename

It works fine with desktop client, but not throught web client, as soon as we upload file throught web site, error appear.

Thanks in advance for your help,

- Petr