RE: Problem with view uploaded files (problem solved)
Hi Philip, Thanks for your time. Now the solution is to copy the file from the forth server to the local server then view it from there. The credit should go to Shaun, the manager of Ottawa user group. I also thank everybody who takes time to consider this problem. Sima -Original Message- From: Philip Arnold [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 26, 2003 1:55 PM To: CF-Talk Subject: RE: Problem with view uploaded files What if you map the drive to a drive letter. Example: H: = \\servername\filefolder\ then in CFCONTENT use: H:\whatever_you_need You can't do that - CF logs in as a service, not on a desktop, so you HAVE to use UNC locations ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Get the mailserver that powers this list at http://www.coolfusion.com Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Problem with view uploaded files
Hi Philip, Thanks for your time. But even the files uploaded hours ago still the same. It must be something to do with the path to the server. I believe when talking about the directory not on the same server, there is a difference between pathes used in CFFILE and the CFcontent , though they point to the same place. Just don't know what it is. I can use \\servername\uploadfold\ in CFFILE to upload files to another server, but cannot use the same path to view it with CFcontent. Then tried to use http://.; still not working. Thanks again. Sima -Original Message- From: Philip Arnold [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 25, 2003 5:43 PM To: CF-Talk Subject: RE: Problem with view uploaded files Thanks for the help, this is the error message I got: Error Message: No such file.br Error Detail: The file specified in CFContent does not exist: http://172.16.1.151/activeFiles/1674_1562949_337_944811446_Built50.txt pThe error occurred while processing an element with a general identifier of (CFCONTENT) Where the activeFiles is a virtul directory which points to the files stored on the forth server. The file was just uploaded to there. Now instead of give me blank window, it shows the standand download window ask me whethere to open or save the file. I choose to open , it shows the souce of my display page, not the page on that server, though using the correct file name. What you've got to remember is that with NT, it doesn't write the file immediately as soon as it's uploaded, the file system can take a fraction of a second to finish writing it If you're writing across a network, then it might take a fraction longer For a test, maybe use CF_WAIT to stall for while, say a second Would that work? ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Problem with view uploaded files
What if you map the drive to a drive letter. Example: H: = \\servername\filefolder\ then in CFCONTENT use: H:\whatever_you_need [EMAIL PROTECTED] 03/26/03 08:18AM Hi Philip, Thanks for your time. But even the files uploaded hours ago still the same. It must be something to do with the path to the server. I believe when talking about the directory not on the same server, there is a difference between pathes used in CFFILE and the CFcontent , though they point to the same place. Just don't know what it is. I can use \\servername\uploadfold\ in CFFILE to upload files to another server, but cannot use the same path to view it with CFcontent. Then tried to use http://.; still not working. Thanks again. Sima -Original Message- From: Philip Arnold [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 25, 2003 5:43 PM To: CF-Talk Subject: RE: Problem with view uploaded files Thanks for the help, this is the error message I got: Error Message: No such file.br Error Detail: The file specified in CFContent does not exist: http://172.16.1.151/activeFiles/1674_1562949_337_944811446_Built50.txt pThe error occurred while processing an element with a general identifier of (CFCONTENT) Where the activeFiles is a virtul directory which points to the files stored on the forth server. The file was just uploaded to there. Now instead of give me blank window, it shows the standand download window ask me whethere to open or save the file. I choose to open , it shows the souce of my display page, not the page on that server, though using the correct file name. What you've got to remember is that with NT, it doesn't write the file immediately as soon as it's uploaded, the file system can take a fraction of a second to finish writing it If you're writing across a network, then it might take a fraction longer For a test, maybe use CF_WAIT to stall for while, say a second Would that work? ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Problem with view uploaded files
What if you map the drive to a drive letter. Example: H: = \\servername\filefolder\ then in CFCONTENT use: H:\whatever_you_need You can't do that - CF logs in as a service, not on a desktop, so you HAVE to use UNC locations ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Problem with view uploaded files
Hi Philip, Thanks for the help, this is the error message I got: Error Message: No such file.br Error Detail: The file specified in CFContent does not exist: http://172.16.1.151/activeFiles/1674_1562949_337_944811446_Built50.txtpThe error occurred while processing an element with a general identifier of (CFCONTENT) Where the activeFiles is a virtul directory which points to the files stored on the forth server. The file was just uploaded to there. Now instead of give me blank window, it shows the standand download window ask me whethere to open or save the file. I choose to open , it shows the souce of my display page, not the page on that server, though using the correct file name. Any idea? Thanks again. Sima -Original Message- From: Philip Arnold [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 25, 2003 4:13 PM To: CF-Talk Subject: RE: Problem with view uploaded files I have been struggling with this problem for a while, please help. We have an application which runs on three servers, we decided to let the user to upload attachments to a separate forth server. On each server we created a virtual directory which points to where the file stored in the forth server. The upload, delete, move actions with CFFILE is OK. But when the user want to view or download these files, we always got an empty pop up window, or an error says cannot find the file. But it works OK if the file is stored on the same server. The code we use to force download is like this: cfoutput CFHEADER NAME=Content-Disposition VALUE=attachment;filename=#Form.serverFile# CFCONTENT TYPE=unknown reset=No file=#Application.ini.Mappings.Uploadfold#ActiveFiles\#Form.s erverFile# /cfoutput I am sure someone there must know the cause. I very much appreciate if you can share your knowledge with me. What happens when you output; #Application.ini.Mappings.Uploadfold#ActiveFiles\#Form.serverFile# Check it actually points to the right location and has the correct number of \'s ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Problem with view uploaded files
I have been struggling with this problem for a while, please help. We have an application which runs on three servers, we decided to let the user to upload attachments to a separate forth server. On each server we created a virtual directory which points to where the file stored in the forth server. The upload, delete, move actions with CFFILE is OK. But when the user want to view or download these files, we always got an empty pop up window, or an error says cannot find the file. But it works OK if the file is stored on the same server. The code we use to force download is like this: cfoutput CFHEADER NAME=Content-Disposition VALUE=attachment;filename=#Form.serverFile# CFCONTENT TYPE=unknown reset=No file=#Application.ini.Mappings.Uploadfold#ActiveFiles\#Form.s erverFile# /cfoutput I am sure someone there must know the cause. I very much appreciate if you can share your knowledge with me. What happens when you output; #Application.ini.Mappings.Uploadfold#ActiveFiles\#Form.serverFile# Check it actually points to the right location and has the correct number of \'s ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Problem with view uploaded files
Thanks for the help, this is the error message I got: Error Message: No such file.br Error Detail: The file specified in CFContent does not exist: http://172.16.1.151/activeFiles/1674_1562949_337_944811446_Built50.txt pThe error occurred while processing an element with a general identifier of (CFCONTENT) Where the activeFiles is a virtul directory which points to the files stored on the forth server. The file was just uploaded to there. Now instead of give me blank window, it shows the standand download window ask me whethere to open or save the file. I choose to open , it shows the souce of my display page, not the page on that server, though using the correct file name. What you've got to remember is that with NT, it doesn't write the file immediately as soon as it's uploaded, the file system can take a fraction of a second to finish writing it If you're writing across a network, then it might take a fraction longer For a test, maybe use CF_WAIT to stall for while, say a second Would that work? ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4