I have a requirment where the client needs to upload multiple files. The requirement is in such a way that when client selects th browse button a popup similar to windows explorer should come with some check boxe, where the client will be able to select multiple files and once he selects them a and clicks the upload button, the selected files need to be uploaded to the server.I have googled and gone through options of using jQuery/javascript to do the same, but was thinking whether it is possible to build a custom control for this requirement. May I knwo if there will be any limitations for this requirment in ASP .net 3.5?
And all th samples that I have gone through google does not allow user to select multiple files using a kind of windows explorer view(tree view with a check box for files). The examples are in such a way that the user selects one file at a time and then selects other files in a sequence and then uploads all of them.
Have you tried: http://www.uploadify.com
Related
I have been learning how to use the different controls that the asp.net ajax control tool kit provides.
I came across two controls that are very confusing to me:
AjaxFileUpload and 2.AsyncFileUpload.
The 1 st control is pretty fine . I understood that AjaxFileUpload uploads the file with out having the post back unlike normal asp.net File Upload Control
But, I was not sure what again is this AsynxFileUpload. I was not able to understand difference between them
Can any one please clear me on this. If possible , any example
Thanks
AsyncFileUpload - AsyncFileUpload is an ASP.NET AJAX Control that allows you asynchronously upload files to server. The file uploading results can be checked both in the server and client sides.
AjaxFileUpload- AjaxFileUpload is an ASP.NET Ajax control which enables you to upload multiple files to the server asynchronously. When the control is used with a browser which supports the latest features of HTML5 -- such as Microsoft Internet Explorer 10, Mozilla Firefox 9, or Google Chrome 17 -- then the AjaxFileUpload supports displaying file upload progress. The control displays a progress bar as the file is being uploaded.
If a browser does not support the HTML5 File API (for example, Internet Explorer 9) then upload progress is not displayed and a throbber image is displayed instead. In other words, a busy wait image is displayed instead of actual progress.
The AjaxFileUpload control also supports a drag-and-drop interface. You can add multiple files to the AjaxFileUpload upload queue by dragging the files onto the AjaxFileUpload control on a page. Alternatively, you can select multiple files to upload by using the SHIFT key or CTRL key when selecting files with the file upload dialog. These features are not supported by older browsers.
By taking advantage of the AllowedFileTypes property, you can restrict the types of files which can be uploaded with the AjaxFileUpload control. For example, you can prevent any file except image files (files with the extensions jpeg, png, or gif) from being uploaded. By taking advantage of the MaximumNumberOfFiles property, you can limit the number of files which can be uploaded with the control. For example, you can prevent a user from uploading more than 5 files.
http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/AjaxFileUpload/AjaxFileUpload.aspx
http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/AsyncFileUpload/AsyncFileUpload.aspx
We have developed Asp.net web application, Here we have uploaded the DWFX file. In one if the UI we have managed the uploaded file.
In this ui user will select the file name then we have provided two options like download and view, When user clicks the "download" option then file will be downloaded via browser.
When user clicks the "View" button then we have to open the DWFX file via browser. if client has installed the DWFX viewer in his machine then it is works fine otherwise it shows the blank browser screen, Instead of showing the blank screen System should tell to user like "DWFX viewer not installed this machine".
How to identify the DWFX viewer installed or not in client machine? or how to achive this requirement.
Thanks
Mayil.M
Short answer, You don't. You just have display instruction on your site that they need the free DWG TrueView software from Autodesk.
Long answer, you write an ActiveX control or a Java Applet that check if the required software if already install. And the user would have to grant your little utility the proper permission.
How can I allow multiple file selection in an Alfresco file browse window?
Currently when a user clicks on the "browse" button, the file browse
window is displayed and the user can only select one file.
Is it possible to allow multiple file selection?
Thanks
For som reason you are not getting the flash uploader to show up. Either it has been disabled in your installation or you dont have the correct flash version installed. In later versions there are drag and drop support. However since Microsoft dont implement all html5 this does not work on ie browsers.
I made an ASP.NET MVC application which allows user to create dynamic websites. I need to add feature which will allow to download from server off-line version of choosen website as static html files with menu, hyperlinks, images, documents etc. It should work similar to applications such as Teleport Pro, but I have to choose from Admin Panel which content should be export.
Client wants to burn static website on CD, save on pendrive.
Do you have any ideas how to begin? Please help.
I currently have implemented that in a current project...
User is able to change anything in the frontend and at the end he can publish and download the offline files... the site subscribe users and show all prizes, winners and more information about that campaign.
All was done in ASP.NET MVC3 under .NET4 and hosted in AppHarbor.
It's composed at several applications but for what you want, you develop the Backend and the Frontend, and to generate the static files, simple use the Frontend to grab the full HTML
As an example, I can show what 2 users did...
Callme.dk did http://callme.julekal.info and
Sony Nordic did http://sony.julekal.info
plus, you can simply point custom domains to it as well like http://sonynordicxmas.net/
To publish and generate all files:
one part of the editing:
So I give the users, offline access (through the .zip file), online access (through the frontend application) and the ability of using custom domains...
I think the only way this might be possible is if you go to every single page and then use your browser to "Save" the web page script and all.
However this causes several issues;
You never quite get everything and you need to massage the HTML produced, dowload all the images etc to get the page to look right
Each html file now has an associated folder with the same name and each time you do this you will get another html file with a folder. You can combine all the folders into a single one but that leads me to item 3.
You will need to edit each html file to clear up any pathing issues if you want to share a single source folder.
Data is no longer dynamic!
You need to, if you want to link all the pages to each other, edit every single html file and resolver the anchor tags.
This is too much work and I think it actually breaks the true requirement.
Don't do it! :)
We have created a web application, using ASP.NET, that allows users to upload documents and attach them to business entities, like customers, contacts and so on.
The application runs on the intranet and all files are uploaded through the web application into a shared folder on the server.
I would like, right from the web page, for the user to open the actual file, edit it and then save the changes back to the original location. This is a piece of cake in a Windows environment, I'm just wondering what, if any, is the best way to handle this in a web environment?
The files are usually Word documents, Excel documents and images.
Clarification
We would display all the attachments in a list format. We would like it so that the user would click on an edit link and the file would be opened in the appropriate application, for example, Microsoft Word or Microsoft Excel. I think the file associations in Windows would already handle this. We are just trying to save our user the time to download the original file, make their changes, delete the old file, and the upload the new file.
SharePoint does this by exposing FrontPage extensions which Word and Excel know how to deal with.
If you want to look at a commercial product for ASP.NET that allows you to edit images with AJAX (no need for installed software), I work for a company that has one (Atalasoft)
WebDAV is probably what you want. (Free)
If all your client computers are Windows, map a shared folder on the server to the same drive letter on every client and use the file:// format.
Let's say you share \ServerName\ShareName to H: on every client's computer, the you can make the link as file://h:\pat_to_the_file_under_your_share\fileName.doc
If not every one of the client's computers are in Windows, then you might try to make your links as follows (not sure if ot works):
file://\ServerName\ShareName\pat_to_the_file_under_your_share\fileName.doc
I'm trying to do something with using file:// instead of http:// but it's real sporadic based on the browser. Seems to work fine in IE, okay in Firefox, and goes nowhere in Chrome.
Looks like I may just be stuck with downloading, editing, and re-uploading the document.
It sounds like you want something similar t eRoom, where the browser works in conjunction with a component that intercepts a stream from http, stores it in a temp folder, then fires up Word or Excel and allows you to edit the stream.
You may have to create a component that will intervene and create a temporary local copy of the file.
This tool should do what you need.
http://www.dlitools.com/dlitools/dlitoolsHome.nsf/0FA6B8B31F831F468525736B0001C606/4BBD7E8684EA8DB78525754E006C63A3?OpenDocument