473,323 Members | 1,550 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,323 software developers and data experts.

Posted File

Hi All,

I am just wondering what options are available for checking the validity
of a PostedFile uploaded using a standard fileupload control.
I need to know how to check if the content type matches the actual file
and if you have any other suggestions for validity checks, i'd be gratful.

Kind Regards
Mick
Oct 21 '07 #1
0 927

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

Similar topics

7
by: Jan Roland Eriksson | last post by:
I'm posting a revised version of the meta FAQ for this NG. Beware that there are a few links in there that does not have a resource available for them yet but, over and all, this following document...
1
by: Guy | last post by:
I have a small problem. A site (not mine) is posting my site multipart data (file). My site is ASP.NET, the other site isn't (in fact it's a VXML Server). I have no problem uploading files from...
3
by: DavidS | last post by:
1st post 10/4/2004. Any advice is appreciated. Attempt to open Excel file using ASP.NET. Sample snipet of source code is as follows: Dim _RptDocument As Object, _RptFormat As Object Dim...
2
by: P K | last post by:
I am using server.transfer for a website being developed in vs.net 2005 And I need to get the posted values after server.transfer. For this I set the second parameter "true" in the transfer...
9
by: Mark | last post by:
Hello I am trying to set up an open file routine that will open whatever files name is passed with its correct associated application. I have done this (quite easilly) before in VBA and am able...
0
by: vishy | last post by:
I am trying to customize the behavior of CFileDialog in VC++. I am displaying images for a proprietary file type (.xyz) in thumbnails view. I am able to display proper images for .xyz files in...
2
by: Keith Harris | last post by:
Hi, I would like to display a preview of a posted file. To accomplish, this I am using storing the image bytes into cache and setting the ImageUrl property of an image control to an aspx page...
1
by: Dica | last post by:
i need to allow users to save files to my site without the use of a web form. as i'm not able to retrieve any of the file properites via the form field, how do i go about saving the file from the...
1
by: tyreejp | last post by:
can javascript access a file that has been posted to page via an HTTP POST?
1
by: blessonin | last post by:
hi all, i want to know how to read the content of a http posted file using stream reader i am using the folloing line but an error in the last line sayin that " 'System.IO.Stream' cannot be...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.