473,509 Members | 3,032 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Uploading Files

B
Hi,

I'm developing a web application where users can upload multiple files to
the website.
I'm using asp.net 2.0 with FileUpload control and can upload 1 image to the
server, but I would like to upload 5 images in total.

Can someone help me in writing a VB.NET part on how I can upload these
multiple files using the FileUpload control?

Dim UploadPath As String = Request.PhysicalApplicationPath + "\images\"

'Before attempting to save the file, verify that the FileUpload
Control contains a file.
If (FileUpload1.HasFile) Then

'Get the name of the file to upload.
Dim fileName As String = FileUpload1.FileName

'Get the extension of the upload file.
Dim extension As String = System.IO.Path.GetExtension(fileName)

'Allow only files with .JPEG or .GIF extensions
If (extension = ".jpeg") Or (extension = ".gif") Then
'Get the size in bytes of the file uploaded.
Dim FileSize As Integer = FileUpload1.PostedFile.ContentLength

'Allow only files less than 5,100,000 bytes (Approximately 5
MB) to be uploaded.
If (FileSize < 800000) Then

'Append the name of the uploaded file to the path.
UploadPath += FileUpload1.FileName

'Call the SaveAs method to save the uploaded file.
FileUpload1.PostedFile.SaveAs(UploadPath)

'Notify the user that the file has been uploaded
successfully.
FileUploadReport.Text = "<b>Bestand is opgeladen naar de
website vanaf: </b><br>" & _
FileUpload1.PostedFile.FileName & _
"Content Type " & FileUpload1.PostedFile.ContentType & _
"Length " & FileUpload1.PostedFile.ContentLength
SqlDataSource1.Insert()
Else
FileUploadReport.Text = "<b>Foto is niet opgeladen omdat
het bestand groter is dan 800K!</b><br>"
End If

Else
'Notify the user why their file was not uploaded.
FileUploadReport.Text = "<b>Bestand is niet opgeslagen, dit
omdat U niet het juiste formaat hebt geselecteerd!</b><br>" + _
"<b>Alleen het formaat .JPEG en .GIF
zijn toegelaten </b><br><br>"

End If
Else
FileUploadReport.Text = "<b>Gelieve een foto te selecteren
vooraleer U op de knop 'opladen' klikt</b><br>"
End If

End Sub

Here is my code :
Dec 29 '05 #1
6 2030
you just put 5 fileuploads controls on the form, and for each one the user
specifies a file for, that file will be uploaded on the submit.

-- bruce (sqlwork.com)

"B" <B@discussions.microsoft.com> wrote in message
news:A4**********************************@microsof t.com...
Hi,

I'm developing a web application where users can upload multiple files to
the website.
I'm using asp.net 2.0 with FileUpload control and can upload 1 image to
the
server, but I would like to upload 5 images in total.

Can someone help me in writing a VB.NET part on how I can upload these
multiple files using the FileUpload control?

Dim UploadPath As String = Request.PhysicalApplicationPath + "\images\"

'Before attempting to save the file, verify that the FileUpload
Control contains a file.
If (FileUpload1.HasFile) Then

'Get the name of the file to upload.
Dim fileName As String = FileUpload1.FileName

'Get the extension of the upload file.
Dim extension As String = System.IO.Path.GetExtension(fileName)

'Allow only files with .JPEG or .GIF extensions
If (extension = ".jpeg") Or (extension = ".gif") Then
'Get the size in bytes of the file uploaded.
Dim FileSize As Integer =
FileUpload1.PostedFile.ContentLength

'Allow only files less than 5,100,000 bytes (Approximately
5
MB) to be uploaded.
If (FileSize < 800000) Then

'Append the name of the uploaded file to the path.
UploadPath += FileUpload1.FileName

'Call the SaveAs method to save the uploaded file.
FileUpload1.PostedFile.SaveAs(UploadPath)

'Notify the user that the file has been uploaded
successfully.
FileUploadReport.Text = "<b>Bestand is opgeladen naar
de
website vanaf: </b><br>" & _
FileUpload1.PostedFile.FileName & _
"Content Type " & FileUpload1.PostedFile.ContentType &
_
"Length " & FileUpload1.PostedFile.ContentLength
SqlDataSource1.Insert()
Else
FileUploadReport.Text = "<b>Foto is niet opgeladen
omdat
het bestand groter is dan 800K!</b><br>"
End If

Else
'Notify the user why their file was not uploaded.
FileUploadReport.Text = "<b>Bestand is niet opgeslagen, dit
omdat U niet het juiste formaat hebt geselecteerd!</b><br>" + _
"<b>Alleen het formaat .JPEG en
.GIF
zijn toegelaten </b><br><br>"

End If
Else
FileUploadReport.Text = "<b>Gelieve een foto te selecteren
vooraleer U op de knop 'opladen' klikt</b><br>"
End If

End Sub

Here is my code :

Dec 29 '05 #2
B
Hi Bruce,

I put 5 FileUploads controls in my page, but as showed in my code, I only
bound the first FileUpload1 control and not the 4 others, this because I
can't find a way on how to bind them as well.
I looked on the net and saw some example's with a loop or For Each...Next
step, but I'm just starting with VB.NET and don't now how to bind the 4 other
controls in my procedure.

Can you help me?
Thanks,
B.

"Bruce Barker" wrote:
you just put 5 fileuploads controls on the form, and for each one the user
specifies a file for, that file will be uploaded on the submit.

-- bruce (sqlwork.com)

"B" <B@discussions.microsoft.com> wrote in message
news:A4**********************************@microsof t.com...
Hi,

I'm developing a web application where users can upload multiple files to
the website.
I'm using asp.net 2.0 with FileUpload control and can upload 1 image to
the
server, but I would like to upload 5 images in total.

Can someone help me in writing a VB.NET part on how I can upload these
multiple files using the FileUpload control?

Dim UploadPath As String = Request.PhysicalApplicationPath + "\images\"

'Before attempting to save the file, verify that the FileUpload
Control contains a file.
If (FileUpload1.HasFile) Then

'Get the name of the file to upload.
Dim fileName As String = FileUpload1.FileName

'Get the extension of the upload file.
Dim extension As String = System.IO.Path.GetExtension(fileName)

'Allow only files with .JPEG or .GIF extensions
If (extension = ".jpeg") Or (extension = ".gif") Then
'Get the size in bytes of the file uploaded.
Dim FileSize As Integer =
FileUpload1.PostedFile.ContentLength

'Allow only files less than 5,100,000 bytes (Approximately
5
MB) to be uploaded.
If (FileSize < 800000) Then

'Append the name of the uploaded file to the path.
UploadPath += FileUpload1.FileName

'Call the SaveAs method to save the uploaded file.
FileUpload1.PostedFile.SaveAs(UploadPath)

'Notify the user that the file has been uploaded
successfully.
FileUploadReport.Text = "<b>Bestand is opgeladen naar
de
website vanaf: </b><br>" & _
FileUpload1.PostedFile.FileName & _
"Content Type " & FileUpload1.PostedFile.ContentType &
_
"Length " & FileUpload1.PostedFile.ContentLength
SqlDataSource1.Insert()
Else
FileUploadReport.Text = "<b>Foto is niet opgeladen
omdat
het bestand groter is dan 800K!</b><br>"
End If

Else
'Notify the user why their file was not uploaded.
FileUploadReport.Text = "<b>Bestand is niet opgeslagen, dit
omdat U niet het juiste formaat hebt geselecteerd!</b><br>" + _
"<b>Alleen het formaat .JPEG en
.GIF
zijn toegelaten </b><br><br>"

End If
Else
FileUploadReport.Text = "<b>Gelieve een foto te selecteren
vooraleer U op de knop 'opladen' klikt</b><br>"
End If

End Sub

Here is my code :


Dec 29 '05 #3
I don't think it's possible.
Due security risks the textboxes are cleared each time.
So on 1st submit, the others will be lost.
You *might* try semicolon (;) ?


"B" <B@discussions.microsoft.com> schreef in bericht
news:8F**********************************@microsof t.com...
Hi Bruce,

I put 5 FileUploads controls in my page, but as showed in my code, I only
bound the first FileUpload1 control and not the 4 others, this because I
can't find a way on how to bind them as well.
I looked on the net and saw some example's with a loop or For Each...Next
step, but I'm just starting with VB.NET and don't now how to bind the 4
other
controls in my procedure.

Can you help me?
Thanks,
B.

"Bruce Barker" wrote:
you just put 5 fileuploads controls on the form, and for each one the
user
specifies a file for, that file will be uploaded on the submit.

-- bruce (sqlwork.com)

"B" <B@discussions.microsoft.com> wrote in message
news:A4**********************************@microsof t.com...
> Hi,
>
> I'm developing a web application where users can upload multiple files
> to
> the website.
> I'm using asp.net 2.0 with FileUpload control and can upload 1 image to
> the
> server, but I would like to upload 5 images in total.
>
> Can someone help me in writing a VB.NET part on how I can upload these
> multiple files using the FileUpload control?
>
> Dim UploadPath As String = Request.PhysicalApplicationPath + "\images\"
>
> 'Before attempting to save the file, verify that the FileUpload
> Control contains a file.
> If (FileUpload1.HasFile) Then
>
> 'Get the name of the file to upload.
> Dim fileName As String = FileUpload1.FileName
>
> 'Get the extension of the upload file.
> Dim extension As String =
> System.IO.Path.GetExtension(fileName)
>
> 'Allow only files with .JPEG or .GIF extensions
> If (extension = ".jpeg") Or (extension = ".gif") Then
>
>
> 'Get the size in bytes of the file uploaded.
> Dim FileSize As Integer =
> FileUpload1.PostedFile.ContentLength
>
> 'Allow only files less than 5,100,000 bytes
> (Approximately
> 5
> MB) to be uploaded.
> If (FileSize < 800000) Then
>
> 'Append the name of the uploaded file to the path.
> UploadPath += FileUpload1.FileName
>
> 'Call the SaveAs method to save the uploaded file.
> FileUpload1.PostedFile.SaveAs(UploadPath)
>
> 'Notify the user that the file has been uploaded
> successfully.
> FileUploadReport.Text = "<b>Bestand is opgeladen
> naar
> de
> website vanaf: </b><br>" & _
> FileUpload1.PostedFile.FileName & _
> "Content Type " & FileUpload1.PostedFile.ContentType
> &
> _
> "Length " & FileUpload1.PostedFile.ContentLength
> SqlDataSource1.Insert()
> Else
> FileUploadReport.Text = "<b>Foto is niet opgeladen
> omdat
> het bestand groter is dan 800K!</b><br>"
> End If
>
> Else
> 'Notify the user why their file was not uploaded.
> FileUploadReport.Text = "<b>Bestand is niet opgeslagen,
> dit
> omdat U niet het juiste formaat hebt geselecteerd!</b><br>" + _
> "<b>Alleen het formaat .JPEG en
> .GIF
> zijn toegelaten </b><br><br>"
>
> End If
> Else
> FileUploadReport.Text = "<b>Gelieve een foto te selecteren
> vooraleer U op de knop 'opladen' klikt</b><br>"
> End If
>
> End Sub
>
> Here is my code :
>
>


Dec 29 '05 #4
B
Hi Edwin,

What do you mean with semicolon?

B.

"Edwin Knoppert" wrote:
I don't think it's possible.
Due security risks the textboxes are cleared each time.
So on 1st submit, the others will be lost.
You *might* try semicolon (;) ?


"B" <B@discussions.microsoft.com> schreef in bericht
news:8F**********************************@microsof t.com...
Hi Bruce,

I put 5 FileUploads controls in my page, but as showed in my code, I only
bound the first FileUpload1 control and not the 4 others, this because I
can't find a way on how to bind them as well.
I looked on the net and saw some example's with a loop or For Each...Next
step, but I'm just starting with VB.NET and don't now how to bind the 4
other
controls in my procedure.

Can you help me?
Thanks,
B.

"Bruce Barker" wrote:
you just put 5 fileuploads controls on the form, and for each one the
user
specifies a file for, that file will be uploaded on the submit.

-- bruce (sqlwork.com)

"B" <B@discussions.microsoft.com> wrote in message
news:A4**********************************@microsof t.com...
> Hi,
>
> I'm developing a web application where users can upload multiple files
> to
> the website.
> I'm using asp.net 2.0 with FileUpload control and can upload 1 image to
> the
> server, but I would like to upload 5 images in total.
>
> Can someone help me in writing a VB.NET part on how I can upload these
> multiple files using the FileUpload control?
>
> Dim UploadPath As String = Request.PhysicalApplicationPath + "\images\"
>
> 'Before attempting to save the file, verify that the FileUpload
> Control contains a file.
> If (FileUpload1.HasFile) Then
>
> 'Get the name of the file to upload.
> Dim fileName As String = FileUpload1.FileName
>
> 'Get the extension of the upload file.
> Dim extension As String =
> System.IO.Path.GetExtension(fileName)
>
> 'Allow only files with .JPEG or .GIF extensions
> If (extension = ".jpeg") Or (extension = ".gif") Then
>
>
> 'Get the size in bytes of the file uploaded.
> Dim FileSize As Integer =
> FileUpload1.PostedFile.ContentLength
>
> 'Allow only files less than 5,100,000 bytes
> (Approximately
> 5
> MB) to be uploaded.
> If (FileSize < 800000) Then
>
> 'Append the name of the uploaded file to the path.
> UploadPath += FileUpload1.FileName
>
> 'Call the SaveAs method to save the uploaded file.
> FileUpload1.PostedFile.SaveAs(UploadPath)
>
> 'Notify the user that the file has been uploaded
> successfully.
> FileUploadReport.Text = "<b>Bestand is opgeladen
> naar
> de
> website vanaf: </b><br>" & _
> FileUpload1.PostedFile.FileName & _
> "Content Type " & FileUpload1.PostedFile.ContentType
> &
> _
> "Length " & FileUpload1.PostedFile.ContentLength
> SqlDataSource1.Insert()
> Else
> FileUploadReport.Text = "<b>Foto is niet opgeladen
> omdat
> het bestand groter is dan 800K!</b><br>"
> End If
>
> Else
> 'Notify the user why their file was not uploaded.
> FileUploadReport.Text = "<b>Bestand is niet opgeslagen,
> dit
> omdat U niet het juiste formaat hebt geselecteerd!</b><br>" + _
> "<b>Alleen het formaat .JPEG en
> .GIF
> zijn toegelaten </b><br><br>"
>
> End If
> Else
> FileUploadReport.Text = "<b>Gelieve een foto te selecteren
> vooraleer U op de knop 'opladen' klikt</b><br>"
> End If
>
> End Sub
>
> Here is my code :
>
>


Dec 29 '05 #5
B
Hi Edwin & Bruce,

Find a solution by using the HttpFileCollection in my VB code behind file.

Example:

Dim UploadPath As String = Request.PhysicalApplicationPath + "\images\"

'Get the HttpFileCollection
Dim uploadedFiles As HttpFileCollection = Request.Files

'Get the extension of the upload file.
Dim extension As String = System.IO.Path.GetExtension(fileName)

'Allow only files with .JPEG or .GIF extensions
If (extension = ".jpeg") Or (extension = ".gif") Then
'Get the size in bytes of the file uploaded.
Dim FileSize As Integer = FileUpload1.PostedFile.ContentLength

'Allow only files less than 5,100,000 bytes (Approximately 5 MB)
to be uploaded.
If (FileSize < 800000) Then
Dim i As Integer = 0

Do Until i = uploadedFiles.Count
Dim userPostedFile As HttpPostedFile = uploadedFiles(i)

Try
If (userPostedFile.ContentLength > 0) Then
FileUploadReport.Text += "<u>File #" & (i + 1) &
"</u><br>"
FileUploadReport.Text += "File Content Type: " & _
userPostedFile.ContentType & "<br>"
FileUploadReport.Text += "File Size: " & _
userPostedFile.ContentLength & "kb<br>"
FileUploadReport.Text += "File Name: " & _
userPostedFile.FileName & "<br>"

userPostedFile.SaveAs(UploadPath & "\" & _
Path.GetFileName(userPostedFile.FileName))
SqlDataSource1.Insert()

End If
Catch ex As Exception
FileUploadReport.Text += "Error:<br>" & ex.Message
End Try
i += 1
Loop


End Sub

"B" wrote:
Hi Edwin,

What do you mean with semicolon?

B.

"Edwin Knoppert" wrote:
I don't think it's possible.
Due security risks the textboxes are cleared each time.
So on 1st submit, the others will be lost.
You *might* try semicolon (;) ?


"B" <B@discussions.microsoft.com> schreef in bericht
news:8F**********************************@microsof t.com...
Hi Bruce,

I put 5 FileUploads controls in my page, but as showed in my code, I only
bound the first FileUpload1 control and not the 4 others, this because I
can't find a way on how to bind them as well.
I looked on the net and saw some example's with a loop or For Each...Next
step, but I'm just starting with VB.NET and don't now how to bind the 4
other
controls in my procedure.

Can you help me?
Thanks,
B.

"Bruce Barker" wrote:

> you just put 5 fileuploads controls on the form, and for each one the
> user
> specifies a file for, that file will be uploaded on the submit.
>
> -- bruce (sqlwork.com)
>
> "B" <B@discussions.microsoft.com> wrote in message
> news:A4**********************************@microsof t.com...
> > Hi,
> >
> > I'm developing a web application where users can upload multiple files
> > to
> > the website.
> > I'm using asp.net 2.0 with FileUpload control and can upload 1 image to
> > the
> > server, but I would like to upload 5 images in total.
> >
> > Can someone help me in writing a VB.NET part on how I can upload these
> > multiple files using the FileUpload control?
> >
> > Dim UploadPath As String = Request.PhysicalApplicationPath + "\images\"
> >
> > 'Before attempting to save the file, verify that the FileUpload
> > Control contains a file.
> > If (FileUpload1.HasFile) Then
> >
> > 'Get the name of the file to upload.
> > Dim fileName As String = FileUpload1.FileName
> >
> > 'Get the extension of the upload file.
> > Dim extension As String =
> > System.IO.Path.GetExtension(fileName)
> >
> > 'Allow only files with .JPEG or .GIF extensions
> > If (extension = ".jpeg") Or (extension = ".gif") Then
> >
> >
> > 'Get the size in bytes of the file uploaded.
> > Dim FileSize As Integer =
> > FileUpload1.PostedFile.ContentLength
> >
> > 'Allow only files less than 5,100,000 bytes
> > (Approximately
> > 5
> > MB) to be uploaded.
> > If (FileSize < 800000) Then
> >
> > 'Append the name of the uploaded file to the path.
> > UploadPath += FileUpload1.FileName
> >
> > 'Call the SaveAs method to save the uploaded file.
> > FileUpload1.PostedFile.SaveAs(UploadPath)
> >
> > 'Notify the user that the file has been uploaded
> > successfully.
> > FileUploadReport.Text = "<b>Bestand is opgeladen
> > naar
> > de
> > website vanaf: </b><br>" & _
> > FileUpload1.PostedFile.FileName & _
> > "Content Type " & FileUpload1.PostedFile.ContentType
> > &
> > _
> > "Length " & FileUpload1.PostedFile.ContentLength
> > SqlDataSource1.Insert()
> > Else
> > FileUploadReport.Text = "<b>Foto is niet opgeladen
> > omdat
> > het bestand groter is dan 800K!</b><br>"
> > End If
> >
> > Else
> > 'Notify the user why their file was not uploaded.
> > FileUploadReport.Text = "<b>Bestand is niet opgeslagen,
> > dit
> > omdat U niet het juiste formaat hebt geselecteerd!</b><br>" + _
> > "<b>Alleen het formaat .JPEG en
> > .GIF
> > zijn toegelaten </b><br><br>"
> >
> > End If
> > Else
> > FileUploadReport.Text = "<b>Gelieve een foto te selecteren
> > vooraleer U op de knop 'opladen' klikt</b><br>"
> > End If
> >
> > End Sub
> >
> > Here is my code :
> >
> >
>
>
>


Dec 29 '05 #6
1) Please read posts better.
2) Have you considered using a better (nick)name?

"B" <B@discussions.microsoft.com> schreef in bericht
news:44**********************************@microsof t.com...
Hi Edwin,

What do you mean with semicolon?

B.

"Edwin Knoppert" wrote:
I don't think it's possible.
Due security risks the textboxes are cleared each time.
So on 1st submit, the others will be lost.
You *might* try semicolon (;) ?


"B" <B@discussions.microsoft.com> schreef in bericht
news:8F**********************************@microsof t.com...
> Hi Bruce,
>
> I put 5 FileUploads controls in my page, but as showed in my code, I
> only
> bound the first FileUpload1 control and not the 4 others, this because
> I
> can't find a way on how to bind them as well.
> I looked on the net and saw some example's with a loop or For
> Each...Next
> step, but I'm just starting with VB.NET and don't now how to bind the 4
> other
> controls in my procedure.
>
> Can you help me?
> Thanks,
> B.
>
> "Bruce Barker" wrote:
>
>> you just put 5 fileuploads controls on the form, and for each one the
>> user
>> specifies a file for, that file will be uploaded on the submit.
>>
>> -- bruce (sqlwork.com)
>>
>> "B" <B@discussions.microsoft.com> wrote in message
>> news:A4**********************************@microsof t.com...
>> > Hi,
>> >
>> > I'm developing a web application where users can upload multiple
>> > files
>> > to
>> > the website.
>> > I'm using asp.net 2.0 with FileUpload control and can upload 1 image
>> > to
>> > the
>> > server, but I would like to upload 5 images in total.
>> >
>> > Can someone help me in writing a VB.NET part on how I can upload
>> > these
>> > multiple files using the FileUpload control?
>> >
>> > Dim UploadPath As String = Request.PhysicalApplicationPath +
>> > "\images\"
>> >
>> > 'Before attempting to save the file, verify that the
>> > FileUpload
>> > Control contains a file.
>> > If (FileUpload1.HasFile) Then
>> >
>> > 'Get the name of the file to upload.
>> > Dim fileName As String = FileUpload1.FileName
>> >
>> > 'Get the extension of the upload file.
>> > Dim extension As String =
>> > System.IO.Path.GetExtension(fileName)
>> >
>> > 'Allow only files with .JPEG or .GIF extensions
>> > If (extension = ".jpeg") Or (extension = ".gif") Then
>> >
>> >
>> > 'Get the size in bytes of the file uploaded.
>> > Dim FileSize As Integer =
>> > FileUpload1.PostedFile.ContentLength
>> >
>> > 'Allow only files less than 5,100,000 bytes
>> > (Approximately
>> > 5
>> > MB) to be uploaded.
>> > If (FileSize < 800000) Then
>> >
>> > 'Append the name of the uploaded file to the
>> > path.
>> > UploadPath += FileUpload1.FileName
>> >
>> > 'Call the SaveAs method to save the uploaded
>> > file.
>> > FileUpload1.PostedFile.SaveAs(UploadPath)
>> >
>> > 'Notify the user that the file has been uploaded
>> > successfully.
>> > FileUploadReport.Text = "<b>Bestand is opgeladen
>> > naar
>> > de
>> > website vanaf: </b><br>" & _
>> > FileUpload1.PostedFile.FileName & _
>> > "Content Type " &
>> > FileUpload1.PostedFile.ContentType
>> > &
>> > _
>> > "Length " & FileUpload1.PostedFile.ContentLength
>> > SqlDataSource1.Insert()
>> > Else
>> > FileUploadReport.Text = "<b>Foto is niet
>> > opgeladen
>> > omdat
>> > het bestand groter is dan 800K!</b><br>"
>> > End If
>> >
>> > Else
>> > 'Notify the user why their file was not uploaded.
>> > FileUploadReport.Text = "<b>Bestand is niet
>> > opgeslagen,
>> > dit
>> > omdat U niet het juiste formaat hebt geselecteerd!</b><br>" + _
>> > "<b>Alleen het formaat .JPEG
>> > en
>> > .GIF
>> > zijn toegelaten </b><br><br>"
>> >
>> > End If
>> > Else
>> > FileUploadReport.Text = "<b>Gelieve een foto te
>> > selecteren
>> > vooraleer U op de knop 'opladen' klikt</b><br>"
>> > End If
>> >
>> > End Sub
>> >
>> > Here is my code :
>> >
>> >
>>
>>
>>


Dec 30 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
2762
by: dickiedyce | last post by:
Hi there. I've spent the weekend getting ever more frustrated, trying to get an upload file function working on a website. The site is hosted by a company called oneandone. They're using PHP...
5
7815
by: Kevin Ollivier | last post by:
Hi all, I've come across a problem that has me stumped, and I thought I'd send a message to the gurus to see if this makes sense to anyone else. =) Basically, I'm trying to upload a series of...
5
5450
by: Ron Brennan | last post by:
Good afternoon. The entire task that I'm trying to achieve is to allow a user to browse and upload multiple files simultaneously, hiding the Browse button of <input> tags of type="file" and...
13
4281
by: Sky Sigal | last post by:
I have created an IHttpHandler that waits for uploads as attachments for a webmail interface, and saves it to a directory that is defined in config.xml. My question is the following: assuming...
0
2180
by: Raj | last post by:
Hello, I am planning to provide the Pause/Resume while uploading files. Our site is using both java applet and activex to do this. The list of selected files will be stored in an encrypted...
221
366982
Atli
by: Atli | last post by:
You may be wondering why you would want to put your files “into” the database, rather than just onto the file-system. Well, most of the time, you wouldn’t. In situations where your PHP application...
2
2313
by: =?ISO-8859-1?Q?=22=C1lvaro_G=2E_Vicario=22?= | last post by:
jodleren escribió: I haven't found the PHP manual page where such feature is documented but a few tests have shown that this behaviour changes depending on the charset parameter of the...
1
726
by: =?Utf-8?B?RGFu?= | last post by:
MS won't seem to let me reply to my old post, so I created a new one. The error occurs in all browsers. It's definitely a server issue, not client. The server is not proxied in any way. I tried...
3
5159
by: muziburrehaman | last post by:
i am looking for code in php to upload the 1 gb files. any one can please help me by sending the code....
0
2699
by: LoriFranklin | last post by:
I'm a bit of a newbie here. I've learned a lot from reading the posts you all have here. I need some help uploading files using an asp form. I am using some code that I found from Jacob at...
0
7136
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7344
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7412
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7069
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7505
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
3203
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1570
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
775
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
441
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.