Welcome Guest, Not a member yet? Register   Sign In
Uploaded filename length
#1

[eluser]Kemik[/eluser]
Hello,

A member of CI Base pointed out that they were having a problem downloading their code and deleting it. I discovered that the problem is the sql field length isn't long enough for their filename so I went to change it but they wondered, what if someone uploads something that's got a file name longer than 255 characters?

My question is, how can I validate the length of a filename before uploading it? Is it just the same as any other input field? I cannot just do a max_length because the local file location could exceed the 255 characters while the filename itself doesn't.

Any ideas?

Thanks.


Messages In This Thread
Uploaded filename length - by El Forum - 04-19-2008, 01:25 PM
Uploaded filename length - by El Forum - 04-19-2008, 03:47 PM
Uploaded filename length - by El Forum - 04-19-2008, 04:37 PM
Uploaded filename length - by El Forum - 04-19-2008, 08:49 PM
Uploaded filename length - by El Forum - 04-19-2008, 09:33 PM
Uploaded filename length - by El Forum - 04-20-2008, 04:45 AM



Theme © iAndrew 2016 - Forum software by © MyBB