This content has been marked as final. Show 6 replies
Thanks for the reply. However I want to force the name of the file to SCHEDULEUPLOAD.MDB...
However I want to force the name of the file to SCHEDULEUPLOAD.MDB
That is what should happen when you use destination="c:\upload\schedule\". The destination attribute must be a folder. What you did earlier was to make it a file, which is incorrect.
Actually he is using the format correctly ( and that's how it worked prior to the 701 updater), however there is a bug in MX701 if you have not yet applied the appropriate hotfix.
Uploaded files, of "known" file extensions, will cause the server to create a directory of the file named, rather than upload the file. We had the same issue with images until we found the hotfix.
After you apply the hotfix, it should work with the code you already have.
Your issue is # 61212
Actually he is using the format correctly
Even if that worked before, it is a "forced" solution. Many of those are possible in Coldfusion. Luckily for us. However, some of them, like the present tend to lapse now and again. Notice that the fix is for ' cffile action="upload" no longer wrote a file with a file specification in the "destination" field. '
Now, go to the cffile manual. It defines destination as the "Pathname of directory in which to upload the file.". Hence, destination is a directory path, not a file path. My advice is that one should go by the book, especially when one is getting unexpected results.
Thanks BKBK and SafariTech.... It seems my test server and prod server had different hotfixes on there. When I applied hotfix 2 to 7.01 as SafariTech suggested the problem was fixed. Thanks again for the help.