Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I've tried various things now but nothing seems to work. Evaluating the file name length in the ValidateField function in the FieldType.cs, doesn't work, because the issue occurs BEFORE the validateField function is hit.
Trying to tackle it in the ProcessSubmittedValue in the fieldtype.cs, also doesn't work, I can rename the file etc, and then do a save as, which saves the actual file, but not the filepath on the database.
After 3 days trying to resolve this (what should be a simple enough fix) I am at tether's end and can find nothing that addresses this in terms of advice or tutorials online.
It's important because currently if the filename is too long the form user gets an ugly .net error message, I just want to return a friendly error message!
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted