201

Re: Another File Browser

When tookoff this (/membri/adozionisdv/)
from the upload path i get this....

Upload folder doesn't exist or $uploadpath in config.php is set wrong!

is there any possibily of modifying some codes on phptumb file? like paths???

202

Re: Another File Browser

The problem is not with phpthumb. DOCUMENTROOT in config.php should be set to a fixed path.

Try:
$uploadpath = "/images/uploaded/"
define(DOCUMENTROOT, "/membri/adozionisdv") Use line 122 and comment out line 126.

Last edited by Guido Neele (2011-06-07 00:04:10)

203

Re: Another File Browser

thank u very much Guido,
I did just as u said... but the same result....
anyway the url of the image is now correct.... but there is no image preview thumbnail...

u may take a look:
http://xxxxxxxxxxx.altervista.org/xxxxx … =stu_img01

Last edited by Nibin (2011-07-08 22:40:28)

204

Re: Another File Browser

You also need to change the document root inside phpThumb.config.php, Line 30. You can set it the same as in config.php.

205

Re: Another File Browser

thanks a lot.... Guido. now it's perfect!!! thank u very much...

if it's not too much... is there any possibility to add a resize feature on uploading images...
if exists please let me know... otherwise on the next version u can think of it.... once again thanks... nibin.

206

Re: Another File Browser

Thanks so much for making this!

It works great and looks nice.

I am having a problem with the thumbnails though, and was hoping I might be able to get a little help.

In order to get anything to work, I had to change the config file to define('DOCUMENTROOT', $_SERVER['DOCUMENT_ROOT']);  I tried changing the phpThumb.config.php file to the same thing(and every other option) but I still don't have thumbnails.

Do you have any suggestions of other things to try, or need anymore information?

207

Re: Another File Browser

This is looking very nice, What about file/folder operations, can they be allowed/disallowed?

208

Re: Another File Browser

newyorkdd wrote:

This is looking very nice, What about file/folder operations, can they be allowed/disallowed?

Yes you can. See config.php

/*
 * ALLOWED ACTIONS
 * 
 * Set an action to FALSE to prevent execution.
 * Buttons will be removed from UI when an action is set to FALSE.
 * 
 */
$allowedActions = array (
    'upload' => TRUE,
    'settings' => TRUE,
    'cut_paste' => TRUE,
    'copy_paste' => TRUE,
    'rename' => TRUE,
    'delete' => TRUE,
    'create_folder' => TRUE
); 

209

Re: Another File Browser

Great Guido, really great work, on a server it work very very well, but on another... i got a problem, i read all topic and i tried everithings, even if my english isn't very well,.... like other users i can make a folder, but i can't upload, copy or paste on it, i can do it only on first folder. I tried to change DOCUMENTROOT.... nothing, attribures of these folders are ok but.... don't work, can u help me, you can see at
http://www.energiaesole.eu/new/pdw_file_browser
thanks
Stefano

210

Re: Another File Browser

Ups, I have a problem...
This morning, I had issue about can't upload a file to a subfolder; I've updated to 1.3, and now I can't upload to any folder...
Are there any solution? smile

211

Re: Another File Browser

Hi Quisoc and Road2k,

Sorry for not answering you sooner road2k I hadn't seen your post.

Could you guys first try the following: http://tinymce.moxiecode.com/forum/view … 30#p82030. Set $uploadpath to the folder you would like to upload a file. I'm curious about the errors you will receive.

Thanks,

Guido

Last edited by Guido Neele (2011-07-04 19:24:50)

212

Re: Another File Browser

Guido Neele wrote:

Hi Quisoc and Road2k,

Sorry for not answering you sooner road2k I hadn't seen your post.

Could you guys first try the following: http://tinymce.moxiecode.com/forum/view … 30#p82030. Set $uploadpath to the folder you would like to upload a file. I'm curious about the errors you will receive.

Thanks,

Guido


I've tried this: http://tinymce.moxiecode.com/forum/view … 030#p82030 and I've received a blank page, and pict is in the folder.

And actions like copy, delete... are buttons? contextual menu? I can't see anything...

Last edited by quisoc (2011-07-04 19:38:58)

213

Re: Another File Browser

quisoc wrote:

I've tried this: http://tinymce.moxiecode.com/forum/view … 030#p82030 and I've received a blank page, and pict is in the folder.

And actions like copy, delete... are buttons? contextual menu? I can't see anything...

Well it's not the upload script and it's not a permission issue. Are you receiving any javascript errors? Which version of flash are you using and on what OS?

214

Re: Another File Browser

Guido Neele wrote:
quisoc wrote:

I've tried this: http://tinymce.moxiecode.com/forum/view … 030#p82030 and I've received a blank page, and pict is in the folder.

And actions like copy, delete... are buttons? contextual menu? I can't see anything...

Well it's not the upload script and it's not a permission issue. Are you receiving any javascript errors? Which version of flash are you using and on what OS?

Server is Linux, flash is 10.3.

I'm working with Symfony framework, but this morning I can upload files...

215

Re: Another File Browser

quisoc wrote:

Server is Linux, flash is 10.3.
I'm working with Symfony framework, but this morning I can upload files...

This morning upload was still working, but now not anymore? What changed during the day?

Last edited by Guido Neele (2011-07-04 20:16:06)

216

Re: Another File Browser

Guido Neele wrote:
quisoc wrote:

Server is Linux, flash is 10.3.
I'm working with Symfony framework, but this morning I can upload files...

This morning upload was still working, but now not anymore? What changed during the day?

I've installed version 1.3. But I will check if I made some changes on config.php...

217

Re: Another File Browser

Guido Neele wrote:
quisoc wrote:

Server is Linux, flash is 10.3.
I'm working with Symfony framework, but this morning I can upload files...

This morning upload was still working, but now not anymore? What changed during the day?

I've compared the new config.php with old versions, and parameters are the same on both.
Server is using PHP 5.2, I don't know if this is a data of interest.

218

Re: Another File Browser

I've made some test with a log opened, and I've noticed that when I click the button "upload", I've received this message on the log: Action "js/tiny_mce" does not exist.

219

Re: Another File Browser

Finally, I've resolved the issue:
1.- Install version 1.2
2.- Add at the line 123 after "try {"

swfu.addPostParam("uploadpath", encodeURIComponent(document.getElementById("uploadpath").value ));

220

Re: Another File Browser

Hi i have problem with upload. I select file then click on OK. File starts uploading and then uploader write me upload is ok but when i close upload dialog i can't see file on file list. Itry it on FF, Opera, Chrome all new versions. I use version 1.3

Last edited by Saja (2011-07-08 16:09:23)

221

Re: Another File Browser

thanks Guido, it was a rights (attributes?) problem, folders was create from apache user so i couldn’t upload other files in or move or copy...., so i soved changed your code with ftp function of PHP to work widh files and folders(ftp_mkdir, ftp_put.....).

222

Re: Another File Browser

Saja wrote:

Hi i have problem with upload. I select file then click on OK. File starts uploading and then uploader write me upload is ok but when i close upload dialog i can't see file on file list. Itry it on FF, Opera, Chrome all new versions. I use version 1.3

I've had similar problem after upgrading form PHP 5.2.x to PHP 5.3.x on the server side. Solution mentioned here: http://sourceforge.net/tracker/?func=de … id=1455997 fixed it for me. Also, please check the active filetype filter (Images, Flash, Media, All files) which may hide certain files in the directory.

223

Re: Another File Browser

krzyko wrote:
Saja wrote:

Hi i have problem with upload. I select file then click on OK. File starts uploading and then uploader write me upload is ok but when i close upload dialog i can't see file on file list. Itry it on FF, Opera, Chrome all new versions. I use version 1.3

I've had similar problem after upgrading form PHP 5.2.x to PHP 5.3.x on the server side. Solution mentioned here: fixed it for me. Also, please check the active filetype filter (Images, Flash, Media, All files) which may hide certain files in the directory.

Still not working. I thing problem is in comunication SWF with PHP. Have you got idea hov can i debug this or turn off swf upload and change it to normal form upload ?

224

Re: Another File Browser

Very nice .. Almost exactly what I need.  The only slight change I need is to only allow access to 3 folders and their sub folders.  Is this possible?

I'll tell you what I'm trying to do.  We have a root folder with many folders and files in.  I want to just allow access to 3 of these folders and their subfolders.  I don't want users to be able to view the other files/folders in the root directory.

I can't move the folders as this would cause lots of broken links on older versions of sites, and I'm trying to roll this it golbally across our collection of sites, past and present.

Thanks!!!

Last edited by Doyley (2011-07-22 13:16:49)

225

Re: Another File Browser

OK I managed to do a little tampering myself and got it to exclude the files and folders I don't want to see.

If anybody is wondering how to do it, I changed line 82 of functions.php to include a list of the files/folders I wanted to exclude.  Here is my example...

        if($r != "." && $r != ".." && $r!="htaccessold" && $r!="test.php" && $r!="content" && $r!="process" && $r!="awstats"  && $r!="user"  && ((!preg_match('/^\..*/', $r) && !is_dir($dir.$r)) || is_dir($dir.$r)) && (($showfiles == false && is_dir($dir.$r)) || $showfiles == true)) {

There will be a more elegant way to do it no doubt, but it works for me.

This is a really amazing bit of kit, nice work done by the author!