CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> General/Other

 File Upload: upload/store files on a different/mapped server

Print topic Send  topic

Author Message
Chris__T


Posts: 339
Posted: 01/27/2009, 1:53 PM

How can you set it so the file upload file folder property can properly link to a server to store the files on?

I can't keep saving people's uploads on the same local drive on my server (where codecharge is running). I'd like to save to a mapped drive that is 500 GB and is RAIDed and protected with Tape backup.

i've been trying to do this through a mapped drive to the file server, but no such luck. Any solve this problem?
View profile  Send private message
zamilie

Posts: 5
Posted: 03/04/2009, 11:45 PM

i also have same problem..anyone can help to solve?

thanks
View profile  Send private message
damian

Posts: 838
Posted: 03/05/2009, 4:06 AM

thats more a web server limitation
if your web server can do it then you can - if your web server cant...
have you thought about moving your web server onto the server with more storage?

_________________
if you found this post useful take the time to help someone else.... :)
View profile  Send private message
datadoit
Posted: 03/05/2009, 7:08 AM

There are many ways to skin this cat. The first and easiest that comes
to mind is to create a remote mount point (either via NFS, SMB,
whatever), thus your file folder will really be on the other machine.

This is pending you're on *nix machines that you have control of.
marcwolf


Posts: 361
Posted: 03/05/2009, 3:39 PM

I had a slightly similar situation.

What I ended up doing was to store the uploaded files in a small storage area, and then run a scheduled task to FTP them to the main storage area.

When I wanted to retrieve the file I would frist do a physical check to see if it was in the temp storage area (using the the file system object) and if it was not then I would use a link to the main storage area (using a standard link)

This way you do not fill up your critial storage area with lots of user files, and you can vary the FTP schedule to move them to a new location.

Hopes this helps

Dave


_________________
' Coding Coding Coding
Keep Those Keyboards Coding.
Raw Code!!!!!!!
View profile  Send private message
marcwolf


Posts: 361
Posted: 03/05/2009, 3:40 PM

Oh - Mapped drives on the file server.
Depending on your OP system you could have some trouble. If it is windows then the IIS service runs in a very protected mode and often isolates such things like mapped drives etc.

_________________
' Coding Coding Coding
Keep Those Keyboards Coding.
Raw Code!!!!!!!
View profile  Send private message
Oper


Posts: 1195
Posted: 03/07/2009, 11:30 AM

Bleh!!! Sorry chris i forgot i told i was help with. :(

right now check this is my result, now let double check first

runing and ASP scrip i get this:
  
Folder c: exists.  
Folder d:\ exists.  
Folder Z:\ does not exist.  
Folder \\192.168.1.4\toyo exists.  
Folder \\SESERVER\toyo exists.  

Note even the Z:\ is a mapped drive.

but i did with IIS 7 now let do the same with IIS6

_________________
____________________________
http://www.7bz.com (Free CMS,CRM Developed in CCS)

http://www.PremiumWebTemplate.com
Affiliation Web Site Templates

Please do backup first
View profile  Send private message
Oper


Posts: 1195
Posted: 03/07/2009, 5:24 PM

1) Normaly IIS use the user IUSR_computername (image1)
http://www.informatica.com.do/7BZ-PortalImageUpload/ima....IIS-Image1.jpg


2) You will have to assign a Different user one that you will create with any password. (image 2)
http://www.informatica.com.do/7BZ-PortalImageUpload/ima....IIS-Image2.jpg


3) Now on the other computer create same user with the same password
to access the folder you will need to use UNC (Universal name Convention) like
\\COMPUTERNAMEORIP\myfolder

Should work:
Image and Spanish version:
http://www.informatica.com.do/Content.asp?cid=58

if you need to test that is working easy way:
  
<%  
'==============================  
'Informatica.com.do  
'==============================  
response.write DriveReady("c:")  
response.write DriveReady("d:\")  
response.write DriveReady("\\192.168.1.4\folder")  
response.write DriveReady("\\COMPUTERNAME\folder")  
  
'Valida si el Drive o unidad esta Disponible  
Function DriveReady(strDRIVE)  
Set fs=Server.CreateObject("Scripting.FileSystemObject")  
  
If fs.FolderExists(strDrive) = true Then  
      Response.Write("<br>Folder " & strDrive & " exists.")  
Else  
      Response.Write("<br>Folder " & strDrive & " does not exist.")  
End If  
  
set fs=nothing  
End Function  
%>




_________________
____________________________
http://www.7bz.com (Free CMS,CRM Developed in CCS)

http://www.PremiumWebTemplate.com
Affiliation Web Site Templates

Please do backup first
View profile  Send private message
zamilie

Posts: 5
Posted: 03/10/2009, 10:01 PM

Oper,

Thanks. it works.

View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.