Architecture :: How To Manage Lots Of Uploaded File
Nov 17, 2010
I am developing a job portal for a company who is operation in mumbai.
I wil have a functionality that job seeker can upload their resume. I want to know that what is the best way to manage those uploaded file so that my application will no go down by performance.
i m developing a product Catalog. All fine, i want to manage wish list for product, which user wish to see, now my question is that how can i manage this wish list, coz i have no uniqueness of the user, coz ny one whether it is registerd or not can wish the product in my scope, i thought to distinguish the user by their IP address becoz this wish list is temporaray, how can i delete the record when user close the browser if go to the IP address for distinguish..
I would like to use HTML input file type in my aspx page to allow user to browse for a excel file and then read the content of the excel sheet programmatically.If I want to read the excel sheet I need the full path of the file to connect to the excel sheet using asp.net.I do not understand how can I get the full path of the file.I know I can get the filename using postedFile.FileName property.But I need the full path of the file.
i am uploading a file through file upload control , file size has greater then 4 MB, I have to give the proper alert msg to the user that file size exceeding the limit.how to do it , because at server side it is crashed on the IIS and not return to the server to check the file size validation.that how it is possible to validate the file size and give the proper alert messege
Well... In a web project I did my Model in a independent project.
In the model I get the info from an API. After it I convert this data in the objects that we need.
Well.. I need to classify these products with help of a XML my client has.
My questions are:
- Is it better read the XML from a file of the server or from an url (http)? Or is the same? (Initially the XML is in the same server but maybe I like the http way so the Model DLL can be "independent" from the Web project).
- Is there any way that the XML be in memory so I dont read the xml every moment (I need it for every visiter of the site)?
-If I can put the XML in Memory, how I can know when the XML file is changed?
In my project i add a reference of one dll and it has some resource files(.resources). Also my project has some resource files with the same language name(Spanish, french and Germany). Also i think we can't add the two resource file for one language. Now how can i mangage both the resource files?
I want to keep the uploaded file name to make it possible to users to download the file under the same name. But how can I implement it? The one option I see is to store each file to folder with unique name (GUID, for example).
I have a web form that uploads files by <asp:FileUpload> control. It uploads files to any folder on the disk (path to uploads can change in web.config, for example "c:UploadedFiles"). After file has been uploaded I need to show a link on the WebPage to download this file.
How it's possible create a link to this file (or what is another solution) on the web page if my website is in completely different place!?
I need to create a custom web control which will be a part of a class library. This custom web control implements the upload functionality. I have implemented this with a web user control where I have a fixed path to a page in the web project where the upload of files take place and it works just fine.
The created control in this class library is used in the web project. How do I post the uploaded file to a page, say SomeClass.cs, in the class library.
Actually i am trying to storing the uploaded file into database but when i run this codes:
[Code]....
I got this error: " Incorrect syntax near the keyword 'File'.Incorrect syntax near the keyword 'File'. " can anybody tell me why this error came out?I tried toi change my connection string in web config,but it still showing the same error each time i run it in my local.
how to prevent exe file from being uploaded in a website , even if exe file is inside zip file( exe file in a new folder and new folder is then zipped and uploaded)?
i'me developing an ASP.NET application and it includes a FileUpload control, an object to show content of a format and a button to do functions. I want that when I upload the file, it will be shown in the object and for this reason i want to know the method to get the URL of the uploaded file.
is there any method on showing the image for the uploaded video files which are in flv format? i saw all the video in youtube got show the image of the video. how to do it?
I was trying to copy file to ftp via in my asp.net application... I did it successfully, however; when I open the copied file it is empty, I checked the properties aswell and its showing 0kb.
I want to upload csv file and import the data into sql. but I cant do the import thing. The file is uploaded but it cannot be imported into sql. This is my code. Hope that someone can tell me what is the problem.
I wanted to customize/Restrict the File Uploader control as follows:
1. To restrict Users to not to upload some type of file like.exe
2. To restrict the user to a specific size limit.
I also wanted to be able to display appropriate messages to the user if the abover restrictions are violated.
Can I use the validations control to achieve the above goals. As I am already using these controls to display appropriate messages to the user in case of wrong/invalid data.
I have made a document uploading page, In which use can upload their document. I am saving three fields in the database,
Document Name [NVarchar] File [Image] DocumentType [NVarchar]
Now, I am able to add records in the database, successfully. Now I want to show it in the gridview, like DocumentName, DocumentType and a link to download the file.
I have tried by retrieving the records and assigning them to the gridview but I am getting only two columns.
I have an ASP.NET FileUpload control, which allows only image type. I used RegularExpressionValidator like below.
<asp:FileUpload ID="fuPhoto" runat="server" TabIndex="40" /> <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ControlToValidate="fuPhoto" Display="Dynamic" ErrorMessage="* You can only upload .jpg, .gif or .png image types." ValidationExpression="^.*.(jpg|JPG|jpeg|JPEG|gif|GIF|png|PNG)$">* You can only upload .jpg, .gif or .png image types.</asp:RegularExpressionValidator>
This method will only verify the file's extension, not its actual type. Once I receive the file, I want to examine its contents to determine what it really is, in this case image only.
I have a page set up that allows users to upload files to the server, and then uses a database entry to attach the file to a project. When the project opens, I load a gridview with the list of files, and create a hyperlink to the file like this:
Code: Protected Sub gvFiles_RowDataBound(sender As Object, e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles gvFiles.RowDataBound If e.Row.RowType = DataControlRowType.DataRow Then ' Dim oLinkButton As LinkButton = e.Row.FindControl("lbDescription") Dim oSQL As New clsSQL
[Code] .....
When I try to click on the link, and select Open file, I get the following error:
I notice the type is right here, but on the open screen it isn't:
It says Type compressed Zip Folder for some reason. What I am doing incorrectly?