file upload issue with large filename

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • CFFAN
    New Member
    • Dec 2008
    • 29

    file upload issue with large filename

    Code:
    <form action="" method="post" enctype="multipart/form-data">
    	<input type="file" name="img">
    	<input type="submit" name="submit" value="submit">
    </form>
    <cfif ISDefined('Form.img')>
    	<cffile
    		action="upload"
    		destination="D:\thumb"
    		filefield="img"
    		nameconflict="makeunique"/>
    Please see above code.
    I used this code for uploading. It's worked fine for me except with large file name. Upload occur but i can't open the uploaded file with large file name.
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    Why don't you rename the file if it's too large (or rename all uploaded files irrespective of length)?

    Comment

    • bushnellweb
      New Member
      • Jan 2010
      • 48

      #3
      renaming the file seems to be a good fix..need code email me [email removed]
      Last edited by acoder; Jan 30 '10, 07:38 PM.

      Comment

      • acoder
        Recognized Expert MVP
        • Nov 2006
        • 16032

        #4
        Do you mean you have the code or require the code?

        PS. posting email addresses is against the guidelines for your own safety and privacy.

        Comment

        • bushnellweb
          New Member
          • Jan 2010
          • 48

          #5
          I meant i could supply code sorry for the e-mail post

          Comment

          Working...