File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Java Products and Servers and the fly likes IIS: Default upload handling? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "IIS: Default upload handling?" Watch "IIS: Default upload handling?" New topic
Author

IIS: Default upload handling?

Neeraj Vij
Ranch Hand

Joined: Nov 25, 2003
Posts: 315
Hi,

I am able to execute a PUT and Post request for uploading a file using HTTP CLient 3 and HTTp Client 4 as well. The .net application is deployed on IIS 6 server.

I have given the url like test
while uploading the file. I am able to get a 200 OK response after uploading the file. But I am unable to find the file uploaded on the machine where IIS is installed.

Please provide any inputs, where that file will be uploaded.


Thanks
Neeraj



Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39529
    
  27
That depends on what the server code does with it (which is unrelated to the client code, and so has nothing to do with the HttpClient library). Check with the developer of that application.


Ping & DNS - updated with new look and Ping home screen widget
Neeraj Vij
Ranch Hand

Joined: Nov 25, 2003
Posts: 315
Thanks Ulf.

developers are not reading the uploaded files.

I am just learning to hack an application where web servers have enabled Http PUT and Delete request. I was trying to upload a file at the server using httpclient.


I understand that, file will not get uploaded unless the developers have written the code to revcieve those files. Please correct me if I have understood it incorrectly.I cannot directly upload a file where web servers have enabled http PUT request.

Thanks
Neeraj


Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39529
    
  27
I understand that, file will not get uploaded unless the developers have written the code to revcieve those files. Please correct me if I have understood it incorrectly. I cannot directly upload a file where web servers have enabled http PUT request.

Not quite. Some servers may have built-in capabilities to handle uploads (in which case you should check the server's documentation for how that works, and where files will end up).

But you were talking about a .Net application, so I assumed that's what handles the upload.
Neeraj Vij
Ranch Hand

Joined: Nov 25, 2003
Posts: 315
application is deployed on IIS 6.0

any inputs will be help.

many thanks
neeraj
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39529
    
  27
What kind of input are you looking for? If it's not your code that handles the file upload, then it's IIS itself; what does its documentation say about this?
Neeraj Vij
Ranch Hand

Joined: Nov 25, 2003
Posts: 315
thanks Ulf.

I need inputs regarding the IIS default upload directory. How would IIS handle an uploaded file, if its sent through PUT request without any directory path. its just the host name. like http://www.example.com.

many thanks
Neeraj.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39529
    
  27
Moving to a more appropriate forum, and fixing the subject to reflect what the issue is really about. IIS isn't often used in conjunction with Java, though, so you may have more luck elsewhere on the web.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: IIS: Default upload handling?
 
Similar Threads
Apache common's fileupload query??
Common's FileUpload query??
How to get the complete url of uploaded file in Struts2
Uploading file
uploading a file but want to restrict the type of files