Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Images upload, don't display  (Read 5218 times)

0 Members and 1 Guest are viewing this topic.

Trev98

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
Images upload, don't display
« on: October 20, 2003, 06:48:41 pm »

I have a problem where images with spaces uploaded to the gallery don't display (they get the dreaded X pic from IE). I checked the directories and the files exist. Is there a fix to this? Thanks.

Trev98

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
Images upload, don't display
« Reply #1 on: October 21, 2003, 09:37:05 am »

No ideas?

Zarsky

  • VIP
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 268
    • Zerr Family Website
Images upload, don't display
« Reply #2 on: October 21, 2003, 03:20:04 pm »

spaces work on my end...what OS and is your host running under?  Do you know what file system they are using?
Logged
Read the Online DOCs, FAQ, and SEARCH the board BEFORE posting questions for help.

Trev98

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
Images upload, don't display
« Reply #3 on: October 21, 2003, 08:36:36 pm »

Hi - someone else uploaded a file with spaces and no pic...hmm. My host (Freeservers) is running Linux with PHP v. 4.1.2. I'm not sure which file system they're using.

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Images upload, don't display
« Reply #4 on: October 22, 2003, 09:13:29 am »

give us a test account of a user who is allowed to upload, so we can test...

GauGau
Logged

Trev98

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
Images upload, don't display
« Reply #5 on: October 22, 2003, 10:55:52 am »

OK -

username: coppermine
password: cop790

thanks!

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Images upload, don't display
« Reply #6 on: October 22, 2003, 10:50:47 pm »

I just uploaded a pic with a space in the filename, but I can't see the result, because you have activated admin approval. If it doesn't show correctly, could you show us the dump of this particular db entry (use phpMyAdmin)?

GauGau
Logged

Trev98

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
Images upload, don't display
« Reply #7 on: October 22, 2003, 11:33:21 pm »

It didn't show correctly, but the file uploaded. I'm not sure how much you need dumped, but here's the beginning structure:
Code: [Select]
CREATE TABLE `cpg11d_pictures` (
  `pid` int(11) NOT NULL auto_increment,
  `aid` int(11) NOT NULL default '0',
  `filepath` varchar(255) NOT NULL default '',
  `filename` varchar(255) NOT NULL default '',
  `filesize` int(11) NOT NULL default '0',
  `total_filesize` int(11) NOT NULL default '0',
  `pwidth` smallint(6) NOT NULL default '0',
  `pheight` smallint(6) NOT NULL default '0',
  `hits` int(10) NOT NULL default '0',
  `mtime` timestamp(14) NOT NULL,
  `ctime` int(11) NOT NULL default '0',
  `owner_id` int(11) NOT NULL default '0',
  `owner_name` varchar(40) NOT NULL default '',
  `pic_rating` int(11) NOT NULL default '0',
  `votes` int(11) NOT NULL default '0',
  `title` varchar(255) NOT NULL default '',
  `caption` text NOT NULL,
  `keywords` varchar(255) NOT NULL default '',
  `approved` enum('YES','NO') NOT NULL default 'NO',
  `user1` varchar(255) NOT NULL default '',
  `user2` varchar(255) NOT NULL default '',
  `user3` varchar(255) NOT NULL default '',
  `user4` varchar(255) NOT NULL default '',
  `url_prefix` tinyint(4) NOT NULL default '0',
  `randpos` int(11) NOT NULL default '0',
  PRIMARY KEY  (`pid`),
  KEY `pic_hits` (`hits`),
  KEY `pic_rate` (`pic_rating`),
  KEY `aid_approved` (`aid`,`approved`),
  KEY `randpos` (`randpos`),
  KEY `pic_aid` (`aid`),
  FULLTEXT KEY `search` (`title`,`caption`,`keywords`,`filename`)
) TYPE=MyISAM AUTO_INCREMENT=86 ;


And here's the specific dump of your upload:

Code: [Select]
INSERT INTO `cpg11d_pictures` VALUES (85, 14, 'userpics/10052/', 'fruit 5.jpg', 5820, 8913, 223, 171, 1, 20031022154950, 1066855728, 52, 'coppermine', 0, 0, 'Just a test', 'testing, please delete', '', 'NO', '', '', '', '', 0, 0);
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 14 queries.