upload file field (restrict filename size?)
Hi All,
ok...I have a form that has to fields where a file can be uploaded when the form is submitted. When the form is submitted the file has a date/time stamp on it and just the filename.ext is added to the database (fields - file1 & file2).
The issue is I had to bump up these length on these fields to (40) because the longer my file name I started to get the error below. I think (40) is plenty but there is always still the possibility someone
may still try to upload a filename that is too long and the error below will appear and the file gets uploaded to the server but the record/form data is not added to the database. I'm not sure how to go about placing a restriction on the length of the filename, is that possible? Thanks for any suggestions.
Code:
Microsoft OLE DB Provider for SQL Server error '80040e57'
String or binary data would be truncated.
Rebelle, November 13th, 2008 09:21 AM
Bookmarks