473,468 Members | 1,469 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Errors to test for in file upload

I am designing an application which will upload files to a remote server
(incidentally HTTP post if that makes any difference). This is a "client
application" which, hopefully, hundreds of people will be using within 1-2
years and maybe even more as my employer's main product becomes available in
different languages/countries.

Having never made this specific type of application before - I am afraid
that I will overlook some sort of error handling and user information that
is needed.

Is there a standard "template" for error handling, or some sort of a
checklist? What would be nice would be a list of possible errors and
examples on how to catch and report them.

Now, of course I have considered looking on MSDN for every conceivable error
that could be thrown - but I doubt that is practical or necessary. (If that
is what I should be doing, then by all means tell me so!) I tried this a
while back in MFC C++ VS 6.0 and found that I had dozens of errors that
never ever returned, so the effort translating them was wasted - and some
errors that I had missed because I was focusing so exclusively on places
that I was expecting thrown exceptions. Also I am worried about getting too
specific, a "disk read error" on a corrupted file is useful to the user,
more detailed information may simply confuse the user partiularly if they
are not tech savvy.

--
LTP

:)

Jun 10 '07 #1
0 1060

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

Similar topics

3
by: Atz | last post by:
Hi to all ! This is the working, completed PHP script for file upload. The only problem is: wenn i send file and when the file is upload on the server, the file name ( orginal file name is...
1
by: Derek | last post by:
I am writing a web application for job seekers, and am adding a section that allows administrators to upload jobs to the system via xml. I have used an xml schema to validate the xml they upload....
3
by: moondaddy | last post by:
I have a simple webform where a user can upload images by using an input element of type "file". In the a button's click event in the codebehind is this code which saves the file to the server. ...
1
by: Brian Henry | last post by:
When I use the file upload control <input type = file> and try to upload an exe file it errors, how do i get it to allow exe file uploads so I can display a frendly warrning message about they...
13
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...
3
by: SalP | last post by:
I'm using VS 2003. I'm uplading a file using Input Type='File' .PostedFile. etc. How does one trap the error when the file is larger than the 4 Meg default? Try/Catch doesn't work. I get the...
5
by: Mumo | last post by:
Hi all, I am just starting with this programming language. I was trying to write an upload script to the server but the code is not working. Here is a sample of the code am using to upload the...
7
by: Adam | last post by:
Hello. I do most of my web dev work from a Mac (whose file system is case-insensitive.) I upload my web pages and other files onto a Unix-based host, which is case sensitive. When I look at the...
2
by: MDANH2002 | last post by:
Hi From VB.NET I want to simulate the POST request of the following HTML form <html> <title>HTTP Post Testing</title> <body> <form action=http://www.example.com/postdata ...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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
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
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...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
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 ...

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.