file-upload

Best Practice for Saving Images

I am allowing users of the admin panel of my website to upload photos, its a simple process where I check the validity of the image and then save it to a folder, then I also have to record a couple of database records for that image to be able to retrieve it later, my saving function is as follows... The function that uploads and saves t...

PostedFile Is Nothing on DataGrid File Upload

I'm trying to upload a file in VB.NET using an HtmlInputFile, but everytime I upload, the HtmlInputFile's PostedFile is Nothing. Here is my ASP.NET code: <form id="Form1" method="post" runat="server" enctype="multipart/form-data"> <asp:DataGrid id="dgTitles" runat="server" OnUpdateCommand="dgUpdate" DataKeyField="ID"> ...

File Upload link clears when page reloads, why?

I am using ASP.net(2.0) with VB.NET. I have a User registration form. On that form the user supply all his contact details and he can upload a image with the normal file upload control in ASP.net. This is my problem. If anything goes wrong on the page then i give the User a error message saying what he left out or what went wrong. But ...

FindControl in DataList Edit Mode

As a new .net/C# web begginner, I always get tripped up when I try to use FindControl. Blam -flat on my face. Here is my current FindControl problem: I have an .aspx page and Form, then ajax updatePanel, inside it there is my DataList (DataList1) that has an EditItemTemplate: that has the following: <EditItemTemplate> <asp:Label ID="th...

Uploading files in Rails

I want to make a section in my site where visitors can upload files (pdfs). How can this be done? Also, after the pdf is uploaded, I need a link to that file. Rather than using a boring text link, I was thinking of having a thumbnail graphic of the first page of the pdf. Is there a tool out there that does this? ...

Trying to find an AJAX file upload solution for Zend Framework using jQuery...

I'm trying to create an "upload file, and email as an attachment" form where the file starts uploading after it has been selected (like Gmail), before sending the email. I would also like to implement a progress bar to show the status of the upload. There should be all sorts of examples out there, but I just can't find them! Do you kn...

ASP.NET Fileupload and AJAX

I have a little problem with the FileUpload and uploadpanels. As most of you probably knows you cannot use the asp:FileUpload control without forcing a postback. At least not what I know of, let me know if I am wrong. Now my problem is: I have a usercontrol with a FileUpload and a button that says "Upload". This UserControl is loaded i...

Large File Upload Errors with PHP

I have an image upload for a slideshow, and the users are continuously uploading files that are 2MB plus. Files under this size work fine, but files over the size cause what looks like a browser timeout. Here are my php ini settings: Max memory allocation: 12M Max file upload size: 10M Max HTTP Post size: 10M Max execution time: 60 M...

If (fileUpload.HasFile)=false

hi all here the code then i will explain my question:- Protected Sub btnupload_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnUpload.Click If (IsPostBack) Then HandleUploadedFile() Dim savePath As String = "Images\" If (fileUpload.HasFile) Then Dim fileName As String = file...

PHP's FILEINFO_MIME option returns empty string

I'm trying to check the MIME type of an uploaded file in my PHP application. I upload the file, then do this, where $file is the path to my file: $finfo = new finfo(FILEINFO_MIME); $mimetype = $finfo->file($file); In this situation, $mimetype is always an empty string. I've tested on several file types (.jpg, .doc, .txt, .pdf) and it...

using the webclient to upload a file in post and the php to recive and handle file

how do i get the php to reconize that there is a file being uploaded to it by the vb webclient current php code is this if(count($_FILES)==1) { //move_uploaded_file ( $_FILES[0]["tmp_name"] , "./imgs/curdesktop.png" ); file_put_contents("./nin.txt",print_r($_FILES)); } all it does right now is check the FILE array an...

How can I replace the text in the button for an upload-input-field in html?

In HTML you can define in a form an input-field for uploading files. This input-field has a button attached, that pops up a file-chooser-dialog. How can I set the text for this button? ...

Gridview with FileUpload control

Hello, I have a gridview that shows an image as part of one of its columns. In Edit mode, I would like to let the user have the ability to upload a new image file, so I am using the FileUpload control in the edit portion of the template. I have an event to capture this i believe: protected void GridVew1_RowUpdated(object sende...

How do you copy a file into SharePoint using a WebService?

Howdy, I am writting a winforms c# 2.0 application that needs to put an XML file into a document library on SharePoint. I want to use a WebService instead of using the object model (no sharepoint.dll to reference here) I am currently using the http://webserver/site/_vti_bin/copy.asmx webservice. Here is some code: byte[] xmlBy...

File uploading on different pages.

Hi, I am stuck in uploading files at different pages.On one page i open a popup where i ask user to browse and select files and on close option,the popup gets closed and then i want to upload files from the main page, not from the popup. How can i do that? I am using the following code to obtain uploaded files: HttpFileCollection uploa...

Image upload via gridview question...

Hello, I have a gridview that displays data from a database. The datbase stores the image filename (string) among other things for an item. I have the fileupload control showing in the EDIT view, and that uploads the file just fine. The problem is, I want to update the image filename in the database and I am not sure how to get the da...

File uploading in AJAX updatepanel without full postback

I have a update panel, in the update panel I have fileupload control and button control, On button click, I need the file that I have upload in the fileupload control in updatepanel. Exact scenario, I have 8 tabs on page, each tab contains too much information, One of the tab is Attachment, when user click on Add New Attachment Modal P...

Asp.Net 2.0 File upload

I know I use the asp FileUpload control for uploading a file but I need to change the design of the control to an image button. Is this possible? ...

Load inFile Data in Mysql

I have a Text file of Size 1.5GB or around 1.3Crores of Rows. When I am Loading this text file to the Table of same structure in MYSQL, Its Loads only 62Lack records, shows 65K warnings and Finished. Whatis the reason, Why It loads only half of records??? Do I need to increase Buffer Size?? If yes then How?? or there is some other rea...

How to upload a file in C/C++ using HTTP with libcurl?

I would like to upload a fiel (a picture in my case) in C/C++ using HTTP with libcurl. It will be great to have a working sample in C/C++ with (optional) the php code for the server side. ...