I have a 2 Gb File on IIS server.
How do I enable multipart download to this file ?
For eg: An app called as Download Accelator Pus (DAP) works by splitting the download file into different parts & fetches each part in parallel.
It also allows resuming downloads if for some reason download is interrupted.
What settings do I need to configure on my server to achieve this ?
Related
i'm trying to download zip file from my application hosted on IIS, but unfortunately the download is not being completed, it's stuck on 99%
i tried to change the MYME-Type to octet-stream, without luck. also i tired to manage the MYME-Type from the web.config with same situation.
NOTES: 1- I'm able to download RAR files without any issue.
2- I'm using IIS 7.5 under windows server 2012
According to your captured image, I guess you used chrome to download the file. There are two reason which will cause this issue.
One is your computer has installed the anti-virus checking for the downloaded files. I suggest you could try to disable the related setting and try again.
Besides, the chrome has contained the build-in scanning/checking the files which is used to checking the download files. I suggest you could try to start chrome with this switch:
--safebrowsing-disable-download-protection
I would like to prevent web site users to upload some types of files like .zip, .rar, .bat etc...
Looking for general solution that would be applied to IIS server and not to CMS sistems installed on server.
Uploading .zip file should return an error.
you can add and install "File server resource manager" in windows server (from add/remove programs. Bottom link describe all you needed)
and then block all extension group(like executable files or videos file) of specific path(in your case specific path is your upload folder)
follow this link to more details
Bit of a loose question so if it gets marked down I'll remove it.. but..
I'm using Primefaces/Spring/Hibernate for Java server.
My application knows a load of file names I need to upload. Those files are on my local computer. Is it possible to tell the application the root directory of these files, for it to then setup uploads for each of these files without me needing to browse for each file individually?
I assume this is a browser security issue, i.e. the user needs to explicitly state which file the application is allowed to know about etc?
If not I'll have to do it in a local application but I was hoping there was a way a mass upload could be kicked off from the browser by just setting the local directory of the files.
I decided to use the Primefaces uploader, upload all the files in the directory and let the application sort them out once it has them on the server.
I'd like to use the IIS FTP server, but I need to be able to tell when a file upload completes for a specific user. I'd rather not rely on watching file changes directly within Windows because I don't think I'll be able to tell if the file upload truly completed or was aborted and might be completed at a later time.
You can use a custom logging provider to do this. I've implemented something very similar using
http://learn.iis.net/page.aspx/632/how-to-use-managed-code-c-to-create-an-ftp-provider-that-sends-an-email-when-files-are-uploaded/
as as start.
I have a web application developed using JSP and Servlet. This web application is deployed on server having Debian Linux as OS and The Tomcat version is 5.5.31. As this applications required some data files, These data files will be get created automatically when setting are done using a standalone java application. This application is deployed on another machine. This setup is done. As I dont know much about Debian Linux and where my application is goes on it so I have some doubts in deployment of these autimatically generated data files which are as follows
As I made the .war file of my web application and deployed it using Tomcat Manager. so I dont know where exactly my application goes. I dont know the exact path. How do I find it?
Is it possible to create FTP for this web application which is deployed on Debian Linux server? I think that if creating FTP is possible then I will directly connect to FTP using my Stand alone Java program and will easily do the creation of the file and other file and directory manipulation.
If you've deployed a war, the application isn't anywhere on the filesystem as such. Most servers will unpack the war somewhere, but you shouldn’t rely on where that is.
I can think of several options:
getServletContext().getAttribute("javax.servlet.context.tempdir") to get the application's temp directory, then inform you external program of this location and place the file somewhere in there in a know location.
Arrange for a "know location" outside of the application, such as /tmp/somewhere or /var/cache/your-app/somewhere to place such files. (Note: /tmp is usually cleaned on startup of a linux machine)
As for getting the file onto the server from a remote machine: You could get your client to upload the file directly to your webapp (something like Apache HTTPClient will help you there), which means that you could do without the "know location" above. If you want to do this outside of the application though, I'd avoid FTP (due to security). Instead, I'd go with scp (secure copy).
Edit: Reading between the lines a little, you mention "setting" in the data file. If this is a configuration file which is not changed once the app is running, you may find it more convenient to have a "deploy" step on your server which simply takes the settings file and adds it to the war before deploying it. This is easy enough with "ant war" for example. You could then access the file using getClass().getResourceStream(..) or such.