So, I have searched the help postings and have seen that this error has appeared in earlier releases of this module. I have also seen the patch regarding tempnam() that is supposed to resolve the error. I have tried the patch, and it does not resolve the issue.

Here is a quick overview of the problem:
- I try to upload a test message through the Admistrative login -> Create Content -> Image
- When I try to upload the image test.jpg or any other image I receive the message "The selected file test.jpg could not be uploaded. Only JPEG, PNG and GIF images are allowed."
- I have verified that the image sizes do not exceed 200KB, that they are in fact valid images with the correct extensions, and I have tried .gif, .GIF, .jpg, .JPG, .jpeg, .JPEG, and every other variation of the file extension that I can think to try.
- I had tried to use the patch mentioned in http://drupal.org/node/180126 but it does not resolve the problem.
- I am running Drupal version 6.10 on a 2003 Windows Small Business Server

So, if anyone has another avenue or suggestion, I'm completely open...

CommentFileSizeAuthor
#5 NFBN_2008_Whitecane_01.jpg115.72 KBmhansen4

Comments

acwWeb’s picture

FYI - I am using FCKeditor and can manually upload the test images into the body through that program without any issues.

sun’s picture

Component: image_import » image.module
Status: Active » Postponed (maintainer needs more info)

Please try the latest development snapshot.

acwWeb’s picture

I have downloaded the lastest development snapshot and will be testing it shortly. I will let you know the results. Thank you for the help!

acwWeb’s picture

Uploaded latest development and problem continues. No Change.

mhansen4’s picture

Component: image.module » image_import
StatusFileSize
new115.72 KB

I am experiencing the same problem. I am currently running Drupal 6.9 and image 6.x-1.0 alpha 4. After reading the comments above I updated my test site to image 6.x-1.0 dev (May 1, 2009). After performing the update I still am receiving the above error.

NOTE of Procedure: When updating I deactivated the image modules (I did not unistall them) I removed the image directory. I then extracted the dev version and finally reactivated the image modules.

patomon2008’s picture

hi~, I'm a drupal user from china.I'm sorry that my English is not good enough and I hope you can umderstand my words....
I also met the problem today.
I have no idear about this,but I found that there was a cue when the problem happen
such as "For security reasons, your upload has been renamed to %filename."
So my filename was changed to a new name with a "." behind, for example : "text.jpg"to"text.jpg."
then the "jpg." can't be recognised as a image type.
I'm not sure whether is this cause the problem but I was really confused about this.
And I hope it can be solved as soon as possible.

mhansen4’s picture

The status of this issue is "postponed (maintainer needs more info)". What additional information do you need? I would be happy to try and pass it along.

mhansen4’s picture

I have found that the files I am uploading via FTP into the image_import directory aren't being given the correct permissions. Once I did a chmod 660 * on them in the image_import directory the files were recognized correctly and the import worked.

acwWeb’s picture

As the original poster of this problem (in this instance) I too have been waiting to see what further information is required as the problem continues and I now see that I am not the only one experiencing a problem, although not all of the comments appear to be the same as mine.

If I upload images to a gallery folder it will allow me to import them, however when I simply go to create content --> create image and try to upload an image I get the message "The selected file test.jpg could not be uploaded. Only JPEG, PNG and GIF images are allowed."

I am using the FCKeditor module and can upload images/files without a problem when using that, but cannot when simply trying to "create image" for an image gallery.

I have since upgraded to Drupal 6.11 and have used the latest development snapshot for the Image module.

I would really like to use this module as the gallery would fit perfectly on the website that I am working on redesigning.

At this point I am going to attempt to do a fresh install of drupal and the image module as I am still in beta testing of the software to make sure it works for the project.

sun’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)

Seems like the proper solution was found in #8