Hi, I was using ^|.*\.(?i:gif|jpg|png)$ until I found out that any file type could be uploaded so I emailed support and Jack gave me ^([%\w-]+\.(?:jpe?g|JPE?G|gif|GIF|png|PNG)|)$ which works fine. I am finding most of my users are uploading files like 1a 2b.jpg and the gap/whitespace is giving them a error, how would I modify the above so that only images can be uploaded but the image can have any character in the filename including white space?
Subject | Author | Views | Date |
---|---|---|---|
![]() |
garrynz | 2531 | Jul 28, 2005, 10:44 AM |
![]() |
Andy | 2490 | Jul 28, 2005, 11:14 AM |
![]() |
garrynz | 2481 | Jul 28, 2005, 11:35 AM |
![]() |
Andy | 2480 | Aug 4, 2005, 12:00 AM |
![]() |
Robert | 2439 | Oct 7, 2005, 11:11 PM |
![]() |
Andy | 2448 | Oct 8, 2005, 12:58 AM |
![]() |
Robert | 2434 | Oct 8, 2005, 4:17 AM |
![]() |
klangan | 2417 | Oct 10, 2005, 11:11 AM |