Maxlength validation

Last post 03-07-2010, 9:04 PM by cutechat. 2 replies.
Sort Posts: Previous Next
  •  03-07-2010, 6:01 AM 59212

    Maxlength validation

    Hi,
     
    While Uploading a file in the control,i have to allow user to have the file length of 250 characters.
     
    if i create a file with more than 100 character its giving error "Specified Path or File Name is too Long"........
     
    My Senario is that i have to allow max file name of 250 character...Plse help us...
     
    Thanks...
  •  03-07-2010, 6:49 PM 59216 in reply to 59212

    Re: Maxlength validation

    Dear Heidi_pri,
     
     
    Regards,
    Eric
  •  03-07-2010, 9:04 PM 59227 in reply to 59212

    Re: Maxlength validation

    Hi,
     
    I can upload a file with 160+chars .
     
    The problem is that, when uploader save the file to the temp directory,
     
    the path is :
     
    x:\folder1\tempdir1\xxxxxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx.filename.ext.resx
     
    the folder path, the guid, the '.resx' will spent at least 42 or more chars.
     
    and windows do now allow save it .
     
     
    That is the condition of the 'default provider'
     
    You can write custom provider to save the temp file.
     
     Please check this thread :
     
     
    I have tested 254 chars.
     
    Regards,
    Terry
View as RSS news feed in XML