Page 1 of 1

plFileHandler Not showing new files

Posted: Sat Dec 10, 2011 1:35 am
by andrewvideo
Hi

Has anyone having the same problem as me. When you upload new files by whatever ftp. Neo upload or even plFileHandler. They are not been shown. but if you empty the browser cache, clear cookies and then relog in.. Then you can see the new uploads (updated dir listings).

I have to go though this every time - empty the browser cache etc to see new files been upload. When I delete the files by ftp, the file manger in plFileHandler still thinks that the old files are there which they are not there anymore until you empty the browser cache then file manger in plFileHandler well see the new updated dir.

Can anyone help. :'(

Cheers.

Andrew

I am using :

CMSMS 1.9.4.3 and tried CMSMS 1.10.2
CTLModuleMaker 2.0.3
plFileHandler 0.6

Here my Blueprint

Code: Select all

<?php
$blueprint = array(
"videos" => array(
	'fields' => array(
		'0' => array(
			'name' => 'Category',
			'friendlyname' => 'Category',
			'type' => 'dropdown',
			'params' => array(
				'indexed' => '',
				'options_table' => 'module_MediaCenter_category'
			)
		),
		'1' => array(
			'name' => 'VideoSummary',
			'friendlyname' => 'Summary',
			'type' => 'textarea',
			'params' => array(
				'mandatory' => '1',
				'indexed' => '1',
				'wysiwyg' => '1'
			)
		),
		'2' => array(
			'name' => 'VideoDescription',
			'friendlyname' => 'Description',
			'type' => 'textarea',
			'params' => array(
				'mandatory' => '1',
				'indexed' => '',
				'wysiwyg' => '1'
			)
		),
		'3' => array(
			'name' => 'madeby',
			'friendlyname' => 'Made By',
			'type' => 'text',
			'params' => array(
				'mandatory' => '1',
				'indexed' => '1',
				'maxchar' => '50'
			)
		),
		'4' => array(
			'name' => 'VideoTags',
			'friendlyname' => 'Video Tags',
			'type' => 'text',
			'params' => array(
				'mandatory' => '1',
				'indexed' => '1',
				'maxchar' => '40'
			)
		),
		'5' => array(
			'name' => 'VideoFile',
			'friendlyname' => 'Video File',
			'type' => 'file',
			'params' => array(
				'indexed' => '',
				'allowedext' => 'mp4,flv',
				'startdir' => '/Videos'
			)
		),
		'6' => array(
			'name' => 'VideoThumbnail',
			'friendlyname' => 'VideoThumbnail',
			'type' => 'image',
			'params' => array(
				'indexed' => '',
				'allowedext' => 'jpg,jpeg,gif,png',
				'startdir' => '/VideoThumbnails',
				'resize' => '1280x720',
				'crop' => '1',
				'thumbsize' => '120x90',
				'thumbcrop' => '1'
			)
		),
		'7' => array(
			'name' => 'Genres',
			'friendlyname' => 'Video / Film Genres',
			'type' => 'dropdown',
			'params' => array(
				'indexed' => '',
				'options_table' => 'module_MediaCenter_genres'
			)
		)
	),
	'lvlid' => 'lvl1',
	'name' => 'videos',
	'name_singular' => 'Video',
	'name_plural' => 'Videos',
	'femode' => 'open',
	'indexed' => '1',
	'autonomous' => '1',
	'normal_user' => '1',
	'fe_allow_new' => '1',
	'adminfields' => array(
		'0' => 'id',
		'1' => 'VideoThumbnail',
		'2' => 'name',
		'3' => 'Category',
		'4' => 'modified',
		'5' => 'active'
	)
),"Category" => array(
	'fields' => array(

	),
	'lvlid' => 'lvl2',
	'name' => 'Category',
	'name_singular' => 'Category',
	'name_plural' => 'Categories',
	'femode' => 'closed',
	'indexed' => '1',
	'autonomous' => '1',
	'normal_user' => '1',
	'fe_allow_new' => ''
),"Genres" => array(
	'fields' => array(

	),
	'lvlid' => 'lvl3',
	'name' => 'Genres',
	'name_singular' => 'Video / Film Genres',
	'name_plural' => 'Genres',
	'femode' => 'closed',
	'indexed' => '1',
	'autonomous' => '1',
	'normal_user' => '1',
	'fe_allow_new' => '',
	'adminfields' => array(
		'0' => 'id',
		'1' => 'name',
		'2' => 'modified',
		'3' => 'active'
	)
));



Re: plFileHandler Not showing new files

Posted: Sat Dec 10, 2011 5:34 pm
by Dr.CSS
By chance do you have the time zone set for this site?...

Re: plFileHandler Not showing new files

Posted: Sat Dec 10, 2011 9:28 pm
by andrewvideo
Do you mean in the config file?. That's is already there.

$config['timezone'] = 'Europe/London';

Cheers

Andrew

Re: plFileHandler Not showing new files

Posted: Sun Dec 11, 2011 12:45 pm
by andrewvideo
Can anyone help and I am bang my head. lol

Cheers

Andrew

Re: plFileHandler Not showing new files

Posted: Sun Dec 11, 2011 8:26 pm
by mw
just a shot in the dark but perhaps change:

'allowedext' => 'jpg,jpeg,gif,png',

to

'allowedext' => 'jpg', 'jpeg' , 'gif' ,'png',

Re: plFileHandler Not showing new files

Posted: Mon Dec 12, 2011 12:22 am
by andrewvideo
that dint work :(

One thing its work great when you disabled Cache in firefox.

I even try adding this the header no luck

Code: Select all

<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
<META http-equiv="expires" content="-1">
<META HTTP-EQUIV="Expires" CONTENT="Tue, 01 Jan 1980 1:00:00 GMT">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">';
Can anyone can help.

Cheers

Andrew

Re: plFileHandler Not showing new files

Posted: Mon Dec 12, 2011 2:01 am
by mw
that is odd...
well if you need to force it you could try call : clearstatcache();
after your done with your file stuff...

Re: plFileHandler Not showing new files

Posted: Mon Dec 12, 2011 7:58 pm
by andrewvideo
I tried that as well. Not really the sever side is having that problem. Its browser side. when you disabled Cache in browser works find. But I dont really want people have to install firebug so they can disabled Cache in there browser.

anyone ??? :'(

Cheers

Andrew

Re: plFileHandler Not showing new files

Posted: Mon Dec 12, 2011 8:34 pm
by gianpiero
is it only a firefox issue ?
I'm interested in it, may be you ask your editors using Chrome ?

Unfortunatly Firefox need CTRL+F5 for reloading cache completely.

Re: plFileHandler Not showing new files

Posted: Mon Dec 12, 2011 9:29 pm
by andrewvideo
I tried in Safari and its same. :(

Re: plFileHandler Not showing new files

Posted: Fri Apr 06, 2012 10:03 am
by andrewvideo
The only work around Posted By: Bernd Klenk (klenkes)

As a workaround klenkes now use this button on top of the template select_image:
<input type="button" value="Refresh window" onClick="location.reload(true)" />


But has anyone know how to fix this problem


Cheers

Andrew

Re: plFileHandler Not showing new files

Posted: Thu Aug 09, 2012 8:41 am
by Freud
Same problem here.
I've added another workaroud:

In the plFileHandler 'select-image'-template add </__body onLoad="javascript: window.location.reload();"> instead of the normal </__body>-tag.

The select-image-window refreshes each time it's opened and the uploaded files are visible.

EDIT:
Not realy a solution: select-image-window will keep on refreshing wich makes it hard to select an image.