FileImporter complaining about "Invalid file extension" for .jpg (5.6)
Permalink
I have some fairly straightforward FileImporter code in C5 5.6:
$thumb_path points to a JPG file with the extension .jpg.
Still, I always get the error "Invalid file extension". I double-checked the list of file extensions and jpg is definitely on the list.
Anyone have an idea what is going on?
$thumb_path points to a JPG file with the extension .jpg.
Still, I always get the error "Invalid file extension". I double-checked the list of file extensions and jpg is definitely on the list.
Anyone have an idea what is going on?
Adding the file extension to the target file name:
Leaving this up for future generations who may run into the same problem.