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

Parents
  • The variable path may have more than 100 characters when uploading through web site (and in some cases also from local sources). If that is the case the remaining path will be placed in property 77 and if more then 200 characters even in property 78. Your should probably concatenate the displayvalues of those 3 properties before you attempt to extract the filename.

Reply
  • The variable path may have more than 100 characters when uploading through web site (and in some cases also from local sources). If that is the case the remaining path will be placed in property 77 and if more then 200 characters even in property 78. Your should probably concatenate the displayvalues of those 3 properties before you attempt to extract the filename.

Children