Midnight Voices (https://www.peteatkin.com/cgi-bin/mv/YaBB.cgi)
Atkin admin >> Tech >> Image upload not easy on Windows!
(Message started by: Simon Reap on Today at 10:53)

Title: Image upload not easy on Windows!
Post by Simon Reap on Today at 10:53
Hi Steve/Snoopy

I just tried to upload a couple of images from my Windows 11 laptop. I could choose the file (happened to be in a folder on my desktop), but when I clicked the upload button it said "no image file specified". Pretty sure this a JPG/jpg problem. The pictures from my camera all come as .JPG files. I've got Windows Subsystem for Linux on my laptop, so copied the files to new names with lower-case .jpg extensions. They uploaded fine.

Title: Re: Image upload not easy on Windows!
Post by S J Birkill on Today at 19:20
Hi Simon

Good to see your set-list and superb photos appearing, and so promptly!

Concerning image upload: it was all my fault, and I apologise for your having to work around it. Simply speaking, my Javascript regex list of acceptable image file extensions assumed lower case, when it should have been case-insensitive. The addition of just one character ( the letter 'i' ) to the code corrected it. Many thanks for drawing this to my attention.

Steve

Title: Re: Image upload not easy on Windows!
Post by Simon Reap on Today at 20:57
No problem, Steve, thought it might be that.

As the old IT saying goes, if you have 10 problems and add a regex to solve them, you now have 11 problems. :-)



Midnight Voices » Powered by YaBB 1 Gold - SP 1.3.1!
YaBB © 2000-2003. All Rights Reserved.