• eCommerce
  • Social and Community Suite
  • Content Management
  • RSS Extensions
  • VirtueMart Extensions
Follow us on Twitter   Join The Factory on the New Digg  
(0) | Login | Register | Lost Password?
Username: Password:  
Home
Our Products
Joomla 1.7.x  (23) & J!1.6.x
Joomla 1.5.x (28)
Joomla 1.0.x (17)
Factory Club Extensions (7)
Drupal, Elxis, MODx (6)
Windows Gadgets for J! (11)
Free Templates (4)
All Products (92)
Documentation
Tweets
Forum
Contact Us
Terms & Conditions
How to Buy Guide
Customers FAQ's
Updates & Upgrades
About Us
The Factory Demo Server for Joomla Extensions
Money Back Guarantee
Payment Methods for Joomla Extensions
Follow us on Facebook

Latest Tweets

  • Join us at the Joomladay UK!
  • The Factory Extensions Joomla Compatibility Chart
  • Love Factory 2.4 for Joomla 1.7
  • Love Factory - Memberships [VIDEO]
  • Love Factory - Custom Fields Integration [VIDEO]
  • Love Factory - Google Maps Integration [VIDEO]
  • Love Factory - Administrator Guide [VIDEO]
  • Love Factory - Memberships
  • Collection Factory for Joomla 1.6 with CB support
  • Reverse Auction Factory 1.5.9
 
   Home   Help Search Login Register  
The Factory > Forum > Social & Community Factory Suite for Joomla CMS. > HOT or NOT Deluxe Factory > Missing images
Pages: [1]
« previous next »
  Print  
Author Topic: Missing images  (Read 1410 times)
dermaglow
Newbie
*
Posts: 9


View Profile
Missing images
« on: February 17, 2010, 06:00:33 pm »

I noticed that some upload submissions didn't have images in them.

When listing submissions, the photo area is blank.

When viewing the full submission, there's only the word 'photo' shown.

When attempting to 'View image' in the browser, it loads an image URL but the image is not found.

It appears that some people were attempting to upload .bmp images, which do not display in the browser, but the actual (numbered) image file is nowhere in the images folder.

I've disabled every file extension valid for upload in Joomla except gif/GIF, jpg/JPG, png/PNG, and still we are getting submissions with no image available.

EDIT:  I've just attempted to upload a .bmp file myself and received a number of PHP error messages that the image resource wasn't valid... HOWEVER, the hotornot component STILL tells me the upload was a SUCCESS and the description appears in the back end (without a valid image file associated).

In the case of an invalid image filetype submission, shouldn't it return me to the upload dialogue?


Where should I look to sort out this issue?

The site in question is located at http://sheinspiresme.ca. Click on "View the Nominees" to see the submission list.
« Last Edit: February 17, 2010, 06:14:40 pm by dermaglow » Logged
alex.d
The Factory Staff
Hero Member
*
Posts: 1469


Senior Developer


View Profile WWW
Re: Missing images
« Reply #1 on: February 18, 2010, 12:07:53 pm »

Hello!

To not allow BMP files to be uploaded, please edit [Joomla dir]/components/com_hotornot/models/upload.php and add  after line 72:

Quote
if (strpos($file['type'], 'bmp') !== false)
{
  $this->setError(JText::_('BMP files are not allowed!'));
  return false;
}
Logged

The Factory's Development Team member.
Pages: [1]
  Print  
« previous next »
 
Jump to:  

Loading...
Joomla Extension - RSS Factory Manager  Joomla Extension - EBook Factory  Joomla Extension - Briefcase Factory  Joomla Extension - Auctions Factory  Joomla Module - RSS Contextual  Joomla Module - Exchange Factory (Europe / EURO)  Joomla Module - Exchange Factory (Romania/ RON)  Joomla Custom Extensions Development   Free Joomla Extensions  Joomla Extension - RSS Factory Pro (Enhanced Version)  Joomla Virtuemart Payment Plugin - Gecad (EPayment.ro)  Joomla Module - Mosimage / Image Module  Joomla Extension - Reverse Auction Factory (Lowest Bidder Auctions)  Joomla Extension - Article Factory Manager  Joomla Module - Lavalamp Menu  Joomla Module - RSS Image Extractor  Joomla Module - Exchange Factory (Europe / EURO) for Joomla 1.0.15  Joomla Module - Exchange Factory (Romania / RON) for Joomla 1.0.15  Joomla Module - Top Movies (IMDB)   Joomla Module - EBay Latest Auctions  Auction Factory Standalone PHP script