CFfile multiple upload problem

Hello~
I am using two cfinput tags with a type of "file" within the same form. They accept different file types, using regex validation to check each, and have different name and id values.
<!--- FORM FIELDS ---><cfinput type="file" name="pageLayoutCSSFileUpload" class="inputArea" message="Please upload a .css file." required="yes" size="50" id="pageLayoutCSSFileUpload" validate="regex" pattern="^.*\.(css|CSS)$" /><cfinput type="file" name="pageLayoutImageUpload" class="inputArea" message="Please upload a layout image (.gif)." required="yes" size="50" id="pageLayoutImageUpload" validate="regex" pattern="^.*\.(gif|GIF)$" />
Once the form is submitted, I am using cffile to upload each to the same directory, with the same name, but different extensions (one .css and one .gif). The first file, .css, uploads correctly. Then I get an error with the second cffile tag that the mime-type is incorrect, and that the file must be in the image/gif format. I know that the test files I am using are in the correct format, so it seems like the second cffile tag is looking at the first file that is being uploaded. I don't know how this can happen, as the "file" value for each cffile tag is being set through a form variable, which relates directly to the two seperate input fields.
<!--- FORM ACTION ---><!--- upload page layout CSS file --->
<cffile action="upload" destination="#local.pageLayoutsPath#pageLayout_#numberFormat(local.layoutID,000)#" file="#form.pageLayoutCSSFileUpload#" nameconflict="error" result="local.pageLayoutCSSFileUpload" accept="text/css" />
<!--- upload page layout image file (large) --->
<cffile action="upload" destination="#local.pageLayoutsPath#pageLayout_#numberFormat(local.layoutID,000)#" file="#form.pageLayoutImageUpload#" nameconflict="error" result="local.pageLayoutImageUpload" accept="image/gif" />
Has anyone else had this problem? It is complicated to explain, so let me know if this doesn't make sense... Thanks!

According to the docs (and my past experience):
http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-73 8f.html
<cffile action="upload"> requires a FILEFIELD attribute, which should be the name of the form field relevant to the file in question.  Note: not the VALUE of the form field, but the NAME of it.
I'm surprised your code isn't erroring, given FILEFIELD is - appaerently - required.
Adam

Similar Messages

  • MULTIPLE UPLOAD file problem

    Hello,
    I have a problem with multiple upload file tool.
    Because my server need, in order to upload files in its folders, to be logged only with ftp user (that is unique).
    Now, I need that when I upload a file its name will be stored on db table "file_name". But in order to put data in database i have tobe logged also with user that is allowed to access on mysql db.
    So I understand that I should nedd to types of authentication at the same time...
    I think it depends on my type of hosting that is windows, and there is not the possibility to change CHMOD, so the error when I try to upload a file is that the folder has not write permissions...
    Any suggestions?
    Thanks a lot
    ascaro231
    Italy

    Hi ascaro231,
    wow, that is one bag of problems on the remote side :-(
    to be logged only with ftp user
    although PHP itself provides native FTP functions
    (e.g. for uploading files and also changing folder & file permissions), ADDT´s file upload features don´t support this protocol
    and there is not the possibility to change CHMOD
    CHMOD *will* have to be supported by your host, because this is how ADDT changes folder & file permissions.
    Well, to me it seems that your host doesn´t provide some very basic and truly common-standard PHP settings -- and honestly, disabling the regular PHP file upload features is ridiculous.
    Any suggestions?
    go for a better host -- this is just inacceptable.
    Are you hosting with "Aruba" BTW ? They have both Windows and Linux hostings, and AFAIK it´s possible to switch the hosting type.
    Cheers,
    Günter Schenk
    Adobe Community Expert, Dreamweaver

  • Restrict Access and Multiple Upload with Insert

    I continue to have problems with using Restrict Access to Folder with Multiple Upload with Insert. When the restrict access is enabled the uploader does not work, when it's removed it works. Any ideas?

    I've found that if I have a page that displays the kt_login_id, login and then go to that page it doesn't display the login ID. Then if I add the multiple image uploader w/ DB insert and reload the page the login ID is displayed and the uploader works, however, if I set an uploader field to the login ID it inserts and uploads everything but the login id. I thought this might have to do with the fact the the 'Restrict Access to Page' is not on the page yet. When I add it the uploader and insert stops working. I've placed the 'Restrict Access to Page' code in every possible place in the code (above the head) and the only place where the uploader/insert works is when the resrtict code is after the uploader code. But then again the login id does not get inserted. Please someone help.

  • ActiveX not working when multiple uploads is selected

    When using the multiple uploads function on SharePoint 2010 some of my clients get a red cross over the activeX control and some do not. All clients receive a GPO that adds the URL to trusted sites and all browser versions are IE9 x86. I've even installed
    the latest version of flash activeX but that made no difference. One thing I have noticed is that some clients get the red cross and then get a pop-up asking if they want to allow the activex content. When they click allow the control then works. I don't understand
    why some clients work fine, some get prompted then work and then there are some that just do not work nor do they get prompted! Thanks
    PS. I have just discovered that MS Office is not installed don any of the problem PC's! Apparently there is a DLL that is needed to upload this way. Problem is I do not want to install office on all of these PC's.

    Hi JazzyN,
    According to your description, my understanding is that you want tot use Upload Multiple document feature without installiing Office in SharePoint 2010.
    The feature is based on an ActiveX Control called STSUpld.UploadCtl, a dynamic-link library (DLL) that is installed on the client computer in the %ProgramFiles%\Microsoft Office\Office14\ directory during Microsoft Office 2010 Setup. Without this control
    , the feature will be not available for SharePoint 2010.
    I am not sure whether the AnctiveX Control could be added into IE without Office 2010/2013 installing, you can have a try. And you can create a new thread on IE forum, more experts will assist you with this issue.
    As a workaround, you can install SharePoint 2010 Deisgner on the client machine, then you can also use the ‘Upload Multiple documents’ feature in SharePoint 2010.
    More information:
    http://social.technet.microsoft.com/wiki/contents/articles/11234.sharepoint-2010-how-to-enable-uploading-multiple-documents-functionality.aspx
    http://blog.netnerds.net/2012/02/sharepoint-2010-obtaining-stsupld-dll-without-installing-microsoft-office/
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • Need a fix for Muse upload problems to GoDaddy????  I found one!

    GoDaddy now has a new cpanel named "Plesk".  In that panel you will find File Manager.  (I use the Windows version).  In the left panel of File Manager, you will see the root directory and all of its subfolders.  When you click on any of these folders, you will see their contents in the right panel.  You will also see a folder labelled "httpdocs".  This is the default folder that is set up in GoDaddy to be your "home" folder.  So, to fix your upload problems, do these steps:
    1.  Click on the httpdocs folder to see it open in the right panel.  In the toolbar above the right panel, you will see a green plus sign with the word "New".  Click on this drop-down menu.
    2.  Choose "directory"
    3.  Type in the name of one of the folders that your site will need, e.g. images, css, assets, scripts, etc.  This basically creates a subfolder within the httpdocs folder, right?  (There is a way to see how your Muse site sets up these folders prior to publish or upload.  You do this by choosing "Export as HTML" in the File menu of Muse, creating a folder on your desktop (or wherever) for the HTML export, then inspecting its contents after your save it.)
    4.  Continue to create all the subfolders within httpdocs that you will need.  Unfortunately, you have to do this one folder at a time.
    5.  After you have them set up, begin the process of uploading your site, like this:
    6.  In the File menu in Muse, you'll of course see "Upload to FTP Host ...".  Click on it.
    7.  A dialog box will open.  In the top text field, type in your website name ... you must use www. with your entry
    8.  In the "FTP Host" field, type in your domain name again like this ... "ftp.yourdomain.com" ... NO FORWARD SLASHES!!! (even if you find instructions to the contrary, like in Filezilla)  (Also, your domain might be a .org or .net, instead of a .com)
    9.  In the "Host directory" field, YOU MUST ENTER "httpdocs"!!!!  Despite what you learn, DO NOT LEAVE THIS FIELD BLANK!!!
    10.  Then enter your GoDaddy username and password.  (If you set up a different username for your GoDaddy account and your Plesk account, like I did, then use your Plesk username and password.)
    11.  Click on "Upload:  All Files"
    The next few steps are tedious, but necessary to keep your site organized on GoDaddy and to keep from confusing things.  You can probably get away with it, but, if your site doesn't load properly in a browser after doing the above steps, you'll need to click on each folder in the root directory that you copied as a subfolder in the "httpdocs" folder and delete the files.  For example, in the left panel of File Manager, you'll see the root directory.  Click on the "images" folder.  If there are any images that you need for your site in that folder, delete them.  Remember ... you've already copied them over to the images subfolder in httpdocs during your last upload described in the instructions above.  If you don't trust that you can delete them, click on the "httpdocs" folder, then click on the "images" folder and check the files.  Same files, right?  So, go ahead and delete the site files that you find in the appropriate folders in the root directory, making sure that you don't delete the ones that are NOT duplicated within the "httpdocs" folder.  Also remember that your .html pages will not require a subfolder to be set up in the "httpsdocs" folder.  They can just sit there, looking pretty.  But you will have to delete them from the root directory to keep things tidy.  Just click on the folder icon next to "root directory", and you'll see those html pages in the right panel.  Again, delete them. 
    REMEMBER:  To keep your Muse uploads to your GoDaddy site error free, you must ALWAYS make sure that "httpdocs" appears in the "Host directory" field in the "Upload to FTP Host ..." dialog box in Muse.  And all files and folders that your site needs MUST go in the "httpdocs" folder in the root directory of your site in GoDaddy's File Manager (now found in your Plesk Panel).
    I hope this wasn't too confusing.  If so, call GoDaddy.  I called them with this fix and they are using it in their phone support.

    Thank you! Thank you! Thank you! I was going out of my mind. And GoDaddy was no help (although they're usually really good.) I put all the folders in "httpdocs" and the website worked perfectly!

  • My Bionic will only show the first of a multiple upload of pictures on Facebook?

    My Bionic will only show the first of a multiple upload of pictures on Facebook. A friend that has a Razor on Verizon is able to swipe through all the pictures of a multiple picture upload and see them all one at a time. I also find no way to Share on Facebook from the Bionic.
    Thanks
    jek

    Hi Jek!
    I usually have a bunch of pics I want to upload at once too! Are you going to the Gallery>Select Multiple>Choose Pictures>Menu>Photo Share Facebook? Do you have your Facebook account set up through the application on the device? Are you using Facebook for Android? This needs to be setup in order to share. Let us know!
    Katie H
    VZW Support
    Follow us on Twitter @VZWSupport

  • Multiple Inheritance problem persists in Interfaces

    Hi,
    I tentatively made a program and found that multiple inheritance problem of C++ persists even with interfaces. Although this is definetely a special case but I want to know what is this problem known as( i know that this is perhaps known as diamond problem in C++). And is there a way out of this thing.
    interface one
         int i=10;
    interface two
         int i=20;
    interface z extends one,two
    public class xyz implements z
         public static void main(String [] a)
         System.out.println(i);
    }O/P
    D:\Education\Java\JavaStudyRoom\Applets>javac xyz.java
    xyz.java:16: reference to i is ambiguous, both variable i in one and variable i
    in two match
    System.out.println(i);
    *^*
    *1 error*
    Thanks for replying

    suvojit168 wrote:
    I tentatively made a program and found that multiple inheritance problem of C++ persists even with interfaces. Although this is definetely a special case but I want to know what is this problem known as( i know that this is perhaps known as diamond problem in C++). And is there a way out of this thing. This is not the so called diamond inheritance problem. What you have here is an ordinary name clash. And as has been noted you can resolve it by qualifying which constant you're referring to, like
    System.out.println(one.i);
    For the diamond inheritance problem to apply both the one and the two interfaces would need to inherit a common ancestor (that's how the diamond is formed). Furthermore the common anscestor would need to carry implementation which would then be inherited two ways, once via one and once via two. This is the diamond inheritance problem Java is avoiding by allowing single inheritance of implementation only.
    P.S. My previous post was posted my mistake.

  • A different uploading problem

    I have read through the discussions and see that a lot of people are having an uploading problem. I am too, but my problem is a little different. When I upload my photos, everything seems to be fine, all the pages turn from blue to red, and it appears to be done. But, if I quit iWeb, it says it hasn't finished uploading. When I go to the site on the web, everything is there. So, it seems to not be finalizing the last little part where it marks the files as uploaded.
    I am using iWeb 1.1.1.
    I have tried deleting the files from my iDisk and uploading again.
    I have repaired permissions.
    I have deleted the file com.apple.iWeb.plist
    It's not that I'm trying to quit too soon, I have left it for hours, even overnight, and it doesn't complete.
    There's a small circle to the right of the word site that fills in to show progress as it's finishing, and that gets to the point where there's only a small sliver of white.
    Any ideas? Thanks for the help!
    Kirsten
    MacBook   Mac OS X (10.4.7)  

    Have you tried "Publish ALL to .Mac"?

  • Multiple Upload

    Hello,
    The company I am building a prototype for currently houses all files in another database. I will be able to download row entries from the other app to a csv file and import in to my APEX application without any issue but if the row entry has numerous files attached to it can I upload those as well in a bulk upload? We are talking over 1000 potential attachments.
    The alterative is that the other app is web based so if there I may be able to link to a URL but I would need to create a connection between the two databases to bypass user login and password?
    Example: First Name Last Name Address Related documentation
    John Smith 17 Somewhere St, Somewhere Payroll.pdf, applicationforleave.xls, travelexpenses.xls
    No probs getting the First Name, Last Name and Address fields but what about the three files?
    Any thoughts on this?
    Thank you so much in advance.
    Kind regards
    Ros

    Hi Luis,
    Unfortunately the other database is not Oracle.
    The need to extract the data is a one off thing as everyone started working with one application and we are now changing over.
    So the only way that I can do it is to extract all of the attachments in to a folder and then individually upload in to the Oracle database that I have built. To upload over 1000 files will take a long time so if there is a way to multiple upload and assign attachments to individual rows then this will be much better.
    Any thoughts?
    Dimitri did you run any details about multiple upload on your blog? I have read what you had to say about BI and that was very informative.
    Thanks
    Ros

  • SP10 - multiple approver problem with CUP

    We have SP10 (patch 1) in our development system and cannot move forward to production because of a real show stopper.  I have currently reported this to SAP thru an OSS message (and it is in development) but would like to know if anyone else is having this issue with SP10.  (this happened even before applying patch 1)
    We have multiple approvers when creating NEW users or CHANGING users in CUP.  We have it configured to allow just one of the approvers to approve before going on to the next stage.  Since we put in SP10, CUP is requiring ALL approvers to approve the request before going on to the next stage.  We get the following message when one of the approvers approve the request:  Request no: 5020. is approved, pending for other Approvers. 
    I've seen this reported for UAR and SOD but not for CUP.  In fact, there is a fix for UAR in Patch 1 of SP10.  I applied this patch but it hasn't fixed the CUP issue.  I also don't have the issue when rejecting a CUP request, or when approving it through the configuration --> Request --> Administration screen (what I consider the Back-door since only security administrators get the configuration area).
    Thanks for your input.
    Peggy

    Christian,
    I totally agree with you.
    The good news is.... We installed SP11.1 and the multiple approver problem is fixed. 
    We have decided to leave our production system at SP8 until this system settles down a bit.  Of course, this means we can't use many of the new fixes and features (such as UAR).  We use our sandbox system to apply new support packs and do very rigorous testing.  And our DEV system is at SP8 too.
    Good Luck.
    Peggy

  • Uploading problem with Ebay and Dreamweaver MX

    I am unable to sync websites with Dreamweaver MX 6.01. When I connect to the remote server, it shuts down the program. I have reinstalled the program, but it still does it. Also, when I use Safari, Opera, and Firefox to upload photos on Ebay, the upload process fails completely, and blows me directly into My Ebay, as if I was not on the selling page at all. I have to go to my PC to do the photo uploads. Seems like it may be a related issue, some kind of uploading problem with Rosetta, or something. I am using a Macbook Pro with the 2.0Ghz processor, connected with ethernet cable, and firewall is set to off. Any ideas?

    For E-Bay you might try the following:
    Type the following command in Terminal (while Safari is NOT running):
    defaults write com.apple.Safari IncludeDebugMenu 1
    Then launch Safari, and you will be able to use the new Debug menu.
    If you ever wish to disable it again, just repeat the command with a "0" instead of a "1".
    Under the Debug menu, you'll see the User Agent sub-menu; select Windows MSIE 6.0 from the list and then try connecting to your web site
    Dreamweaver you might need to update your version.
    To Dreamweaver 8.01
    http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=f56452a8

  • L430 multiple driver problems (ultranav and others)

    Hello,
    I have multiple driver problems with my newly purchased L430.
    1) After hibernate the UltraNav driver randomly stops working. This means that the settings are grayed out and my old settings aren't applied. Sometimes the mouse pad and track ball also stop working after hibernate.
    2) The hardware mute button and hibernate don't like each other as well. After resuming from hibernate with the mute button on the sound doesn't work anymore. Rebooting only helps if you have disabled the mute before rebooting.
    3) The intel usb 3.0 driver can't be installed unless you want a lot of bluescreens.
    I do have the newest drivers and BIOS (2.54).

    It's ok my friend,  I just hope I will be able to help.
    Now to the problem. The thing that worries me the most and the reason I asked you to contact a Lenovo Repair Center, is the blue screens with the Intel Usb 3.0 installation. If the driver is correct this should not happen and most of the times it signifies a pure hardware problem, not a software one. Really, it just should not happen, period!
    So please, before anything else, download and boot with a Linux Live cd, any distro you like (e.g. Linux Mint, Fedora, etc). Better choose a 64bit version. It's one way of determining if you're facing a hardware problem with the usb 3.0 ports.
    The information you give is very useful and more or less complete, but I would like to also know the model of your SSDs, both the 2.5'' and msata.
    Meanwhile, you can check either with the Linux Live cd or with Memtest86+ your ram. This does not seem to be a memory problem but it would be nice if we could exclude it from the suspects list. Many - if not most - of these problems are multifactorial and we cannot leave anything to chance..
    Cheers!
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"!
    This will help the rest of the Community with similar issues identify the verified solution and benefit from it.

  • Uploading problems with Safari 4.1.3 -

    Hello, I just thought this was a funny question to ask -
    On my PowerPC G5 tower, running OS 10.4.11, and my question is in regards to Safari version 4.1.3 uploading problems for facebook and youtube... I always have to use FireFox version 3.6.13... and not without trouble either.
    I get it.  I need a new computer, but I just thought it fascinating why one works 90% of the time and the other never works.

    Firefox is way more upto date than Safari in 10.4.11, but TenFourFox is the most up to date browser for our PPCs, they even have G4 & G5 optimized versions...
    http://www.floodgap.com/software/tenfourfox/
    Also I think they Require Flash &/or Java, which may be a problem in 10.4

  • Cffile action = "upload"

    This question was posted in response to the following article: http://help.adobe.com/en_US/ColdFusion/10.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-7 38f.html

    Wow, I just noticed that this page makes no mention of the new STRICT attribute added in CF10 for CFFILE action="upload". I also checked and find no reference to it in the Developing CF Apps manual. There's a brief mention of it in the main page for CFFILE here in the CFML Reference, but it doesn't explain what the feature does. It seems (for now) that the best resource may be the blog entry from Sagar Ganatra, who was an Adobe engineer: http://www.sagarganatra.com/2012/03/coldfusion-10-cffile-restricting-file.html

  • Is Safari the problem?  upload problems after Leopard install...

    I installed maximum ram and leopard 10.5 on my old emac and it runs great. I had problems uploading photos to ebay, and attachments to emails, so I installed ilife hoping the upgrade would fix the problem. Nope, when I attempt to upload, the icon just spins and spins, on and on. Could this be a Safari problem? Very frustrated, totally stumped.

    I'm not sure how to link to the iPhoto post thread that help me solve my upload problem. But it is solved. I had to resize the jpeg pic files to 640x320 because my files were way to big. Thanks Old Toad!

Maybe you are looking for

  • Windows 8.1 and icloud doesnt sync photos

    Just installed icloud to my windows 8.1 laptop and it doesnt sync photos at all with my air2 (8.1.2). I have tried to sign in, out, middle, top, bottom, front, behind or whatever... Changed compatibility to Win7 etc. Turned off/on icloud sync/photos/

  • Retrieving column datatype n its size.

    Hi.., I have a query regarding ODI. I have a source table & one target table. I want to write data from source table to target table...but there are two more columns in target where i like to write the datatype n size of respective rows from source t

  • Tablespace Monthly Report

    Hi All I am working in oracle 9i / AIX 5.3. I would like to Generate Monthly TS usage report Report may be.. Date TS NAME USED SPACE in GB FREE SPACE in GB 1/5/2010 TS A 5 GB 4GB ..

  • Defining values on SD Billing Plan during order entry

    Scenario- User enters a sales order with 10 line items. Based on specific material master information (material group, etc), items will be split on two billing plans. For example, lines 1, 3, and 10 would go on the first billing plan at 5% of the pri

  • Is 1080i ok with 1080i 30p?

    I shot a project where the wild life was shot with a Sony Z7U in 1080i 30p (a menu setting) and the interviews were shot in 1080i 29.97.  I capture my footage with a Kona AJA Lhi card in DVCPRO HD so the clips come in as 1280 x 1080 (1.5)   It appear