Re: Another File Browser
Hi thanks for the info.
as for my problem, could this be due to my PHP version. we use 5.3
Hi thanks for the info.
as for my problem, could this be due to my PHP version. we use 5.3
Hi Anthony,
No I think your problem is really a permissions issue. You can try version 1.2 of course but I don't think it will solve the dir() problem.
You will have problems with phpThumb (thumbnails) but you aren't seeing these at the moment because of the dir() problem. Overall compatibility with PHP 5 will be much better in version 1.2. Some problems (creating folders) occurred when open_basedir was enabled, which is most often the case.
Greetings,
Guido
ok, can i ask how to give permission to the needed users then
What do you think of the new skin?
new skin looks awsome.
can not wait for it to be released
New version available for download!
Link: http://www.neele.name/filebrowser/ or https://sourceforge.net/projects/pdwfilebrowser/
-----------------------------------------
Version 1.2 beta
-----------------------------------------
+ Added Danish language (by Mattias)
+ New Skin "Mountain View"
+ Settings panel to select language and theme/skin
+ Custom filters in addition to Images, Flash and Media
+ Compatible with CKEditor v3 (FCKEditor v2 not tested yet!)
+ Double click to insert files in to the editor
* Upload settings (extensions whitelist, max. upload size) in config.php instead of upload.php
* PHP 5 compatible (serious issues with PHP 5 have been solved)
* phpThumb fix for PHP 5.3.x and higher
* Modified actions.php (Error messages are now more clear when creating a folder fails)
* Improved settings for allowing or disallowing actions (including uploading, settings panel and creating folders)
* Added translation function to fall back to English when translation isn't found
* Bug fix for creating new folders when open_basedir is active
* First folder in breadcrumbs at the top is now always the upload folder.
Last edited by Guido Neele (2010-09-16 22:01:37)
Hi,
This looks very-almost ideal for my needs, with one exception. Is it possible to resize uploaded images? Even if it is something along the lines of setting a max dimension for all uploaded images.
Thanks,
Michal.
I am gussing the Thumbnail fix is still needed for this version as i have no thumbs.
I am just working on the translation now in Italian,
But found a spelling mistake in the origional english file
so here is the pack with Successfully correctly spelt:
/*
Language: English
File: lang/en.php
*/
$lang = array(
"decimal seperator" => ".",
"thousands separator" => ",",
"datetime format" => "m/d/Y H:i", // www.php.net/manual/en/function.date.php
"Insert" => "Insert",
"File" => "File",
"Root" => "Root",
"Close" => "Close",
"New folder" => "New folder",
"Upload" => "Upload",
"Clipboard" => "Clipboard",
"items" => "items",
"Change view" => "Change view",
"View" => "View",
"Large images" => "Large images",
"Small images" => "Small images",
"List" => "List",
"Details" => "Details",
"Tiles" => "Tiles",
"Content" => "Content",
"Show the preview pane" => "Show the preview pane",
"Help" => "Help",
"Search" => "Search",
"All files" => "All files",
"Dimensions" => "Dimensions",
"Filename" => "Name",
"Filetype" => "Type",
"Size" => "Size",
"Modified on" => "Date Modified",
"Directory" => "Directory",
"Add a new folder" => "Add a new folder",
"New folder is created in" => "New folder will be created in",
"Name of the new folder" => "Name of the new folder",
"Create folder" => "Create new folder",
"Upload a new file" => "Upload a new file",
"Image editor" => "Image editor",
"Browse..." => "Browse...",
"Upload queue" => "Upload queue",
"Currently uploading in folder" => "Currently uploading in folder",
"Select your file" => "Select your file(s)",
//Context menu
"Edit" => "Edit image",
"Copy" => "Copy",
"Cut" => "Cut",
"Paste" => "Paste",
"Delete" => "Delete",
"Do you really want to delete this folder and its contents?" => "Do you really want to delete this folder and its contents?",
"Do you really want to delete this file?" => "Do you really want to delete this file?",
"Do you really want to delete this image?" => "Do you really want to delete this image?",
"Open" => "Open",
"Refresh" => "Refresh",
"Rename" => "Rename",
//Error, success and general messages
"The folder path was tampered with!" => "The folder path was tampered with!",
"Creating new folder failed!" => "Creating new folder failed!<br />The following characters are not allowed: ^ \\ / ? * \" ' < > : |",
"A new folder was created!" => "A new folder was created!",
"Creating the new folder failed!" => "Creating the new folder failed!",
"The files where succesfully copied!" => "The files where successfully copied!",
"The file or folder path was tampered with!" => "The file or folder path was tampered with!",
"Deleting file failed!" => "Deleting file failed!",
"Deleting folder failed!" => "Deleting folder failed!",
"%d file(s) successfully removed!" => "%d file(s) successfully removed!",
"Select only one file to insert!" => "Select only one file to insert!",
"Insert cancelled because there is no target to insert to!" => "Insert cancelled because there is no target to insert to!",
"Directory already exists!" => "Directory already exists!",
"File already exists!" => "File already exists!",
"Name successfully changed!" => "Name successfully changed!",
"Rename failed!" => "Rename failed!",
"Please give a new name for file" => "Please give a new name for {0}{1}File extension is added automatically!{1}(These characters are not allowed {2})",
"Please give a new name for folder" => "Please give a new name for {0}{1}(These characters are not allowed {2})",
"Action not allowed!" => "Action not allowed!",
"Invalid characters used!" => "These characters are not allowed: ^ \\\ / ? * \\\" ' < > : | .",
//Upload
"Upload limited to %d MB!" => "Upload limited to %d MB!",
"bytes" => "bytes",
"kB" => "kB",
"MB" => "MB",
"Cancel all uploads" => "Cancel all uploads",
//Settings
"Settings" => "Settings",
"Language" => "Language",
"Theme" => "Theme",
"Cookies need to be enabled to save your settings!" => "Cookies need to be enabled to save your settings!",
"Save settings" => "Save settings",
"Settings saved!" => "Settings saved!",
"EOF" => TRUE
);I will post the Italian version shortly
Thanks Anthony I successfully changed it ;-)
Hello Guido,
I was looking for a free replacement for the ImageManager and FileManager,
I could no find a good one, so I started coding one myself, but after one hour.. I found yours!
It's really good!
Are you planning to make a Browse option availabe, just like the Image/FileManager so we can just pick a file and insert the value in a certain text-field? I mean like this: http://tinymce.moxiecode.com/examples_fm/example_03.php
I once wrote an FTP class for the Image/FileManager, what I did was instead of storing files on the server the manager is installed, it stores the files through FTP on a server of one of my clients' server. Maybe if I have time I wanna make one for pdw_file_browser, I really like it!
greetings, Dino
(Goed werk man!)
i can not upload file into subfolder , why ?
Hello rtee,
I had the same problem, here is the answer of Guido:
"Hi Gert,
The problem with Windows Servers is that $_SERVER["DOCUMENT_ROOT"] isn't available, so the constant variable is set wrong.
Change line 107 in config.php to a comment and use line 104. Change it to something like this:
define('DOCUMENTROOT', 'C:\\Inetpub\\wwwroot');
After this change upload should just work."
I was working testing at my PC with Xampp, but I work with linux servers when I go live, so the problem is only as long as it isn't online (or if you really work with a windows server).
i can not upload file into subfolder , why ?
Rtee,
It could also be a permissions problem. Is the subfolder created through PDW File Browser or did you create it yourself via FTP? If a folder is created via the File Browser then the permissions of the folder are set to 755. You could try to remove the folder and recreate it via the file browser.
Greetings,
Guido
Last edited by Guido Neele (2010-09-26 15:21:44)
First of all. Thank you very much for this plugin. It's almost perfect for me!
Secondly, I'm testing this plugin, and it's true, I can't upload files into subfolders.
When you upload a file, it always save into root directory.
It's also true in the official web page: http://www.neele.name/filebrowser/
You can try and see:
1) Create a subdirectory.
2) Upload a file into this subdirectory.
3) The file is in the root directory, not in the subdirectory.
Could you arrange this?
Thank you!
Last edited by luckas (2010-09-26 21:38:40)
rtee wrote:i can not upload file into subfolder , why ?
Rtee,
It could also be a permissions problem. Is the subfolder created through PDW File Browser or did you create it yourself via FTP? If a folder is created via the File Browser then the permissions of the folder are set to 755. You could try to remove the folder and recreate it via the file browser.
Greetings,
Guido
I try to change a lot of possible value for DOCUMENT_ROOT but it can't work
however I found some new problem when I try to move image from root to subfolder (it's ok in local server)
It occur this message on screen
"The file or folder path was tampered with!"
I don't know what it is ? and how to solve it.
so
about DOCUMENT_ROOT , my online server is linux .
i test script to echo $_SERVER["DOCUMENT_ROOT"] ==> /var/www/vhosts/__________.com/httpdocs
i try to use each line for define "DOCUMENTROOT" but it's not work...
help me, expert
Last edited by rtee (2010-09-27 19:44:51)
I've solved permission's issue changing permissions of my pdw_file_browser folder (and its content) to 777.
@luckas, @rtee, and others,
Sorry guys I've been away for a couple of days. I found out why uploading in subdirectories suddenly stopped working. With the latest version 1.2 I added a new version of swfupload. I tested it and all went fine. But it's clear I didn't check if uploading in subdirectories was also working. It turns out that one line in handlers.js was missing. Now the demo is working just fine. I will be uploading a new version shortly but if you want to keep version 1.2 this is the fix. The new version will only include some new translations (Italian and Czech) and this bug fix. I'm currently working on a standalone mode so you can return the path to a textfield. And I would like to add some kind of thumbnail generator.
1. Open handlers.js in the swfupload directory
2. Add the following line of code on line 123 after "try {"
swfu.addPostParam("uploadpath", encodeURIComponent(document.getElementById("uploadpath").value ));Once again the importance of testing is displayed :-)
Greetings,
Guido
Last edited by Guido Neele (2010-09-28 21:12:20)
@rtee,
Could you send me a link to your file browser?
Guido
Thank you Guido! Now it works as expected.
One more thing. I use the Catalan language and I see that the words in handlers.js aren't translated.
I can translate this to my language but if you make another version, it will be deleted.
Could you add a lang.js or anything else with the option to add another languages?
Yours faithfully!
Luckas
I want to thank Guido on this great plugin and also want to contribute serbian translation.
<?php
/*
Language: Serbian
File: lang/rs.php
*/
$lang = array(
"decimal seperator" => ".",
"thousands separator" => ",",
"datetime format" => "d/m/Y H:i", // www.php.net/manual/en/function.date.php
"Insert" => "?????",
"File" => "????????",
"Root" => "???????",
"Close" => "???????",
"New folder" => "???? ????????????",
"Upload" => "?????????",
"Clipboard" => "????????",
"items" => "?????a/?",
"Change view" => "??????? ??????",
"View" => "??????",
"Large images" => "?????? ?????",
"Small images" => "???? ?????",
"List" => "?????",
"Details" => "??????",
"Tiles" => "??????",
"Content" => "???????",
"Show the preview pane" => "??????? ????????? ????",
"Help" => "?????",
"Search" => "????????",
"All files" => "??? ????????",
"Dimensions" => "?????????",
"Filename" => "??? ????????",
"Filetype" => "??? ????????",
"Size" => "???????? ????????",
"Modified on" => "?????????",
"Directory" => "????????????",
"Add a new folder" => "????? ???? ????????????",
"New folder is created in" => "???? ???????????? ?? ???? ??????? ?",
"Name of the new folder" => "??? ????? ?????????????",
"Create folder" => "??????? ????????????",
"Upload a new file" => "??????? ???? ????????",
"Image editor" => "???????? ?????",
"Browse..." => "???????...",
"Upload queue" => "??? ?????? ?? ?????????",
"Currently uploading in folder" => "???????? ???????? ? ????????????",
"Select your file" => "????????? ???? ????????",
//Context menu
"Edit" => "??????",
"Copy" => "???????",
"Cut" => "?????",
"Paste" => "??????",
"Delete" => "??????",
"Do you really want to delete this folder and its contents?" => "?? ?? ?????? ?????? ?? ???????? ???? ???????????? ? ??? ????? ???????",
"Do you really want to delete this file?" => "?? ?? ?????? ?????? ?? ???????? ??? ?????????",
"Do you really want to delete this image?" => "?? ?? ?????? ?????? ?? ???????? ??? ??????",
"Open" => "??????",
"Refresh" => "??????",
"Rename" => "??????? ???",
//Error, success and general messages
"The folder path was tampered with!" => "?????? ?? ????????????? ?? ?????? ?????????!",
"Creating new folder failed!" => "???????? ????? ????????????? ???? ??????<br />??????? ????????? ???? ?????????: ^ \\ / ? * \" ' < > : |",
"A new folder was created!" => "???? ???????????? ?? ?????????!",
"Creating the new folder failed!" => "???????? ????? ????????????? ???? ??????!",
"The files where successfully copied!" => "???????? ?? ??????? ????????!",
"The file or folder path was tampered with!" => "?????? ?? ????????????? ??? ???????? ?? ?????? ?????????!",
"Deleting file failed!" => "??????? ???????? ???? ??????!",
"Deleting folder failed!" => "??????? ????????????? ???? ??????!",
"%d file(s) successfully removed!" => "???? ??????? ????????? ????????: %d!",
"Select only one file to insert!" => "????????? ???? ????? ???????? ?? ????!",
"Insert cancelled because there is no target to insert to!" => "???? ?? ??????? ????? ???? ?????? ????? ?? ????!",
"Directory already exists!" => "???????????? ??? ???????!",
"File already exists!" => "???????? ??? ???????!",
"Name successfully changed!" => "??? ?? ??????? ?????????!",
"Rename failed!" => "??????? ????? ???? ??????!",
"Please give a new name for file" => "?????? ??? ????????? ???? ??? ?? ???????? {0}{1}?????????? ???????? ?? ?????????? ??????!{1}(??? ????????? ???? ????????? {2})",
"Please give a new name for folder" => "?????? ??? ????????? ???? ??? ?? {0}{1}(Ovi karakteri nisu dozvoljeni {2})",
"Action not allowed!" => "?????? ???? ?????????!",
"Invalid characters used!" => "??? ????????? ???? ?????????: ^ \\\ / ? * \\\" ' < > : | .",
//Upload
"Upload limited to %d MB!" => "????????? ?? ?????????? ?? %d ??!",
"bytes" => "???????",
"kB" => "??",
"MB" => "??",
"Cancel all uploads" => "?????? ??? ?????????",
//Settings
"Settings" => "??????????",
"Language" => "?????",
"Theme" => "????",
"Cookies need to be enabled to save your settings!" => "???????? ?????? ???? ???????? ???? ????? ????? ?? ???????? ??????????!",
"Save settings" => "????????? ??????????",
"Settings saved!" => "?????????? ????????!",
"EOF" => TRUE
);
?>Last edited by krsman (2010-10-07 13:35:57)
Thanks krsman I will add it to the zip-file and the live demo.
Greetings,
Guido
Not seeing my thumbnail images. The thumbnail cache folder created.
Can you help?
Guido, PDW File Browser is just gorgeous. I hope to give it a try in the next day or so.
And I would like to add some kind of thumbnail generator.
Are you saying that 1.2 does not generate thumbnails upon image upload?
I also took a look at PDW Toggle Toolbar. What a good idea.
Will
Hi Will,
No that was not what I meant. Sure the thumbnails in PDW File Browser are created automatically. But when you upload pictures that are very large (for instance 1280x1024) then these files will probably be too large to include in your website. You'd rather want to place a smaller image and link to the original. I want to create an action that generates smaller thumbnails from the original file. So you upload an image once and then you can create smaller images of the original.
Please try PDW File Browser I hope you will like it :-)
Guido
Last edited by Guido Neele (2010-10-11 20:41:05)
You are not logged in. Please login or register.