Multiple file Upload

Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default Multiple file Upload

    I am trying to upload multiple images using file upload, which is the easy part the hard part is putting the different file names into a DB.. can anyone help

    New ideas Guest

  2. Similar Questions and Discussions

    1. How to upload a file to 2 FTP sites without an upload component for company
      Hi All I can't get round this because it's a local government thing, but I've done a CMS for a school (in ASP classic) that allows them to upload...
    2. Upload Friendly (Multiple File Upload Applet)
      Title : Upload Friendly (Multiple File Upload Applet) Description : UploadFriendly is an easy to use Java Applet that will allow multiple file...
    3. Multiple file upload at same time...
      Hi, I have an 'add photo' page, with a form on it, which when submitted takes you to a confirmation screen on which the cffile upload script is run...
    4. Can you upload multiple files on one page using the FILE field?
      When using a form to upload a file using the BROWSE functionality, can one send multiple files from one page? My recollection is no, you can't. I'm...
    5. multiple requests simultaineously, file upload
      Hi, i'm new to php but i'm a bit familiar with servlet etc. I have 2 questions: - when a php site s browsed by many users at the same time,...
  3. #2

    Default Re: Multiple file Upload

    Why don't you rename the files using cffile and CreateUUID and then inset it into your database using cfquery?
    Stressed_Simon Guest

  4. #3

    Default Re: Multiple file Upload

    Can u expland on that some more
    New ideas Guest

  5. #4

    Default Re: Multiple file Upload

    OK when you uploaded the file using <cffile action="upload"....... yoy gave it
    a file name, right?

    Use <cfset UniqueName = CreateUUID() & "FileExtension"> as this creates a
    unique reference so you don't copy over anything else.

    Then use <cffile action="rename"..............

    [url]http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/tags-p34.htm#wp1098668[/url]

    to rename the file to the UniqueName variable.

    Now you can use <cfquery> to upload that file name into your database. Does
    that make sense?

    Stressed_Simon Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139