kevind
Posts: 251
|
| Posted: 11/17/2006, 12:34 PM |
|
CCS Ver. 2.3.2.24
I am using the ASPUpload component. When I upload a test file I can see it with FTP and it is inserted into my MS Access database with proper values.
The file name I'm uploading will display in the grid, but when I wish to open it in the record for deletion, the 'delete check box' and the file name are not displayed. I don't care about the checkbox as a 'delete' button on the form seems to delete the item from the DB and from the folder on the server (with shorter filenames).
This does not affect files with shorter names - they behave properly.
The file name that is not working is :
200611171517450.Individuals Serverd in Period by Cohort.pdf
Questions:
1) filename size limit of ASPUpload
2) if there is a filename size limit, how do I prevent user uploading the file in the first place ?
kd
_________________
thanks
Kevin
======================
CCS 3.2.x / ASP / MS Access /mySQL / PHP / jQuery / jQuery UI / jQuery Mobile
|
 |
 |
marcwolf
Posts: 361
|
| Posted: 11/20/2006, 7:16 PM |
|
Hi there Kevind.
I'm not sure about the length of the file name (depending on what op system you are using - most will allow very long filenames)
However it is a good idea when working with web applications etc to clean up a filename.
I had a lot of trouble with people uploading filenames what had slashes, comms, etc in it. And what I did was use a small regexp to clean up the filename after it was uploaded and then renames the 'dirty' filename to the clean one.
The advantage of this is that the dirty file name would never roach my HTML when it was being displayed. Can you imageine having a file name with inverted comma's in it. The string function would never know when it ended.
Hope this helps..
Dave
_________________
' Coding Coding Coding
Keep Those Keyboards Coding.
Raw Code!!!!!!!
|
 |
 |
kevind
Posts: 251
|
| Posted: 11/22/2006, 8:25 AM |
|
thanks, it was an error on my part - filename not long enough in db structure, now set at 254
kd
_________________
thanks
Kevin
======================
CCS 3.2.x / ASP / MS Access /mySQL / PHP / jQuery / jQuery UI / jQuery Mobile
|
 |
 |
|