176

Re: Another File Browser

Guido Neele wrote:

Goodnews,

Have you tested uploading in different browsers? Is it failing with all browsers? For some reason the file isn't being transferred to upload.php but I don't know why.

Regards,

Guido

Just tried in Chrome: same result.
Any other suggestions?
want me to stick a debugger statement in there or console.log?

177

Re: Another File Browser

GoodNews wrote:
Guido Neele wrote:

Goodnews,

Have you tested uploading in different browsers? Is it failing with all browsers? For some reason the file isn't being transferred to upload.php but I don't know why.

Regards,

Guido

Just tried in Chrome: same result.
Any other suggestions?
want me to stick a debugger statement in there or console.log?

Which version of flash are you using? Maybe an update to the latest version is needed. I don't think javascript is the problem.

Last edited by Guido Neele (2011-04-06 13:14:19)

178

Re: Another File Browser

Guido Neele wrote:
GoodNews wrote:
Guido Neele wrote:

Goodnews,

Have you tested uploading in different browsers? Is it failing with all browsers? For some reason the file isn't being transferred to upload.php but I don't know why.

Regards,

Guido

Just tried in Chrome: same result.
Any other suggestions?
want me to stick a debugger statement in there or console.log?

Which version of flash are you using? Maybe an update to the latest version is needed. I don't think javascript is the problem.

Flash Version: 10.2.153.1

179

Re: Another File Browser

Hello,

I have a question about this plugin.

Can it be "called" out from tinyMCE (without a tinyMCE instance).
I need to integrate it in my tinyMCE and I also need to make an acces to the file manager out from tinymce.

Is it possible ?
Of course using the same files for tinyMCE and when we cal it out from tinyMCE...

Seb

180

Re: Another File Browser

Seb33300 wrote:

Hello,

I have a question about this plugin.

Can it be "called" out from tinyMCE (without a tinyMCE instance).
I need to integrate it in my tinyMCE and I also need to make an acces to the file manager out from tinymce.

Is it possible ?
Of course using the same files for tinyMCE and when we cal it out from tinyMCE...

Seb

Hi Seb,

Yes you can. See http://www.neele.name/filebrowser/standalone.php

181

Re: Another File Browser

I've got one problem. When im using this plugin with .htaccess (password protection), it asks again password when you try to upload something. Why it asks because upload file folder isn't even inside password protected directory? Is it because of that flash uploader?

Last edited by djm (2011-04-11 13:38:51)

182

Re: Another File Browser

mimewear wrote:

i'm having a similar install problem as mistafeesh, and i haven't really gotten my head around what's going on with the various files yet. basically, when i go to browse i get a blank screen with the following code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>PDW File Browser v1.3 (beta)</title>
<link rel="shortcut icon" href="mediabrowser.ico" />
<script type="text/javascript">
//<![CDATA[
    var returnID = "";
    var editor = "tinymce";
    var funcNum = "0";
    var select_one_file = "Select only one file to insert!";
    var insert_cancelled = "Insert cancelled because there is no target to insert to!";
    var invalid_characters_used = "These characters are not allowed: ^ \\ / ? * \" ' < > : | .";
    var rename_file = "Please give a new name for {0}{1}File extension is added automatically!{1}(These characters are not allowed {2})";
    var rename_folder = "Please give a new name for {0}{1}(These characters are not allowed {2})";
    var rename_error = "Rename failed!";
//]]>
</script>
<script type="text/javascript">//<![CDATA[<br />
<b>Fatal error</b>:  Allowed memory size of 41943040 bytes exhausted (tried to allocate 65536 bytes) in <b>//pdw_file_browser/jsmin.php</b> on line <b>246</b><br />

The only thing I have changed is the config file where i set the upload folder as a variable to change depending on which user is managing files, etc. As for the allowed memory, I'm not sure where that figure is coming from, and I'm sure I've got loads of free space as the site is still under development. Just confused really.

Thanks

I'm having similar error... only changed a couple of things in config.php
Here's the source from what I see when trying to access the PDW File Browser...

<title>PDW File Browser v1.3 (beta)</title>
<link rel="shortcut icon" href="mediabrowser.ico" />
<script type="text/javascript">
//<![CDATA[
    var returnID = "";
    var editor = "standalone";
    var funcNum = "0";
    var select_one_file = "Select only one file to insert!";
    var insert_cancelled = "Insert cancelled because there is no target to insert to!";
    var invalid_characters_used = "These characters are not allowed: ^ \\ / ? * \" ' &lt; &gt; : | .";
    var rename_file = "Please give a new name for {0}{1}File extension is added automatically!{1}(These characters are not allowed {2})";
    var rename_folder = "Please give a new name for {0}{1}(These characters are not allowed {2})";
    var rename_error = "Rename failed!";
//]]>
</script>
<script type="text/javascript">//<![CDATA[<br />
<b>Fatal error</b>:  Allowed memory size of 33554432 bytes exhausted (tried to allocate 71 bytes) in <b>/var/www/vhosts/neskk.com/httpdocs/pdw_file_browser/jsmin.php</b> on line <b>80</b><br />

183

Re: Another File Browser

Hi Neskk,

The problem is that PHP can't allocate enough memory to perform the operations jsmin want's to do. Jsmin is shrinking the css and js files to make them more lightweight and therefore speeding up the loading of the application. But surely enough this is not working for you. You could try to stop the shrinking by adding false to the combine method. So you change line 106 of index.php from...

echo $minifyJS->combine();

.... to ....

echo $minifyJS->combine(false);

You can do the same for line 112 if that is causing troubles too.

Hope this helps you out.

184

Re: Another File Browser

Did that and it worked... but now it seems that PDW is broken. I click all the buttons and none of them work.
I've been also working on adapting Mad File Browser to my CMS, but it's broken.
What javascript and what code you use to submit the selected file to CKeditor or TinyMCE?

185

Re: Another File Browser

What errors are you getting? Because adding false to the method doesn't change anything to the code. It just doesn't shrink it anymore.

The javascript I use to submit the selected file to CKEditor and TinyMCE is inside a function called insertFile and you can find in jquery.mediabrowser.js.

186

Re: Another File Browser

Whenever I click a button...
Error console:

Error: $ is not defined
Source File: http://neskk.com/pdw_file_browser/index.php?file=#
Line: 1

After loading page... error console:

Error: missing ; before statement
Source File: http://neskk.com/pdw_file_browser/index.php?file=#
Line: 21, Column: 1
Source Code:
* jQuery JavaScript Library v1.4

Last edited by neskk (2011-05-16 19:53:16)

187

Re: Another File Browser

A question for you:

var FileBrowserDialogue = {
        mySubmit : function (URL) {
            var win = tinyMCEPopup.getWindowArg("window");
   
            // insert information now
            win.document.getElementById(tinyMCEPopup.getWindowArg("input")).value = URL;
   
            // are we an image browser
            if (typeof(win.ImageDialog) != "undefined") {
                // we are, so update image dimensions...
                if (win.ImageDialog.getImageData)
                    win.ImageDialog.getImageData();
   
                // ... and preview if necessary
                if (win.ImageDialog.showPreviewImage)
                    win.ImageDialog.showPreviewImage(URL);
            }
   
            // close popup window
            tinyMCEPopup.close();
        }
    }

Is this code accurate to submit the file path to TinyMCE? How do I call the javascript function (kinda newbie in JS)?

188

Re: Another File Browser

neskk wrote:

Whenever I click a button...
Error console:

Error: $ is not defined
Source File: http://neskk.com/pdw_file_browser/index.php?file=#
Line: 1

After loading page... error console:

Error: missing ; before statement
Source File: http://neskk.com/pdw_file_browser/index.php?file=#
Line: 21, Column: 1
Source Code:
* jQuery JavaScript Library v1.4

The first error is a result of the page load error. Change line 103 - 113 in index.php to ...

// JAVASCRIPT
echo '<script type="text/javascript">'."\n";
echo '//<![CDATA['."\n";
echo $minifyJS->combine(false);
echo '//]]>'."\n";
echo '</script>'."\n";

// CSS
echo '<style type="text/css">'."\n";
echo $minifyCSS->combine(false); 
echo '</style>'."\n";

189

Re: Another File Browser

neskk wrote:

A question for you:

var FileBrowserDialogue = {
        mySubmit : function (URL) {
            var win = tinyMCEPopup.getWindowArg("window");
   
            // insert information now
            win.document.getElementById(tinyMCEPopup.getWindowArg("input")).value = URL;
   
            // are we an image browser
            if (typeof(win.ImageDialog) != "undefined") {
                // we are, so update image dimensions...
                if (win.ImageDialog.getImageData)
                    win.ImageDialog.getImageData();
   
                // ... and preview if necessary
                if (win.ImageDialog.showPreviewImage)
                    win.ImageDialog.showPreviewImage(URL);
            }
   
            // close popup window
            tinyMCEPopup.close();
        }
    }

Is this code accurate to submit the file path to TinyMCE? How do I call the javascript function (kinda newbie in JS)?

FileBrowserDialogue.mySubmit('/this/is/my/path/filename.ext');

190

Re: Another File Browser

And what about your buttons not working?

191

Re: Another File Browser

neskk wrote:

And what about your buttons not working?

try http://wiki.moxiecode.net/forum/viewtop … 485#p90485

192

Re: Another File Browser

Sorry my mistake passed over that post and didn't read it.
Replaced that code, with the one with the "\n" and it worked out.
I had a problem in swfupload/upload.php in the include of PDW config.php, because i'm including my config.php in PDW's and it wasn't working properly.

Minify is now working properly, it was because cache folder didn't have the permission set to writable.

Basically all noob mistakes, sorry for your trouble.
Thanks

Last edited by neskk (2011-05-17 04:18:13)

193

Re: Another File Browser

I'm almost finished writing a script that uses this file browser to build an image gallery.  I'm really digging it, but I think I'm in a little over my head...

A big problem I'm having is that some images are being rotated on upload.  After doing a little research, I found that these images are actually being displayed correctly, however they contain "exif" data to tell your application what orientation it should use to display them.  So, I guess your application (iphoto, finder, windows explorer, etc...) is actually rotating them every time you look at them.

So I just started to dive into the exif section of the php manual, and it's not really making a lot of sense to me right now.  I thought I might make a quick post here for any suggestions.  Is the exif data something that should be examined and altered on upload, or something that should be examined/altered (in php) every time it is viewed by the end user?  My biggest concern here, is that I think it should be examined and altered on upload, and I'm not sure if that's something that I can incorporate into this file browser. 

Any thoughts?  Any info is much appreciated!  Even if anyone knows of a good intro to exif to get me started, that would be awesome!  Thanks!!!

Last edited by weismana81 (2011-05-17 11:09:51)

194

Re: Another File Browser

weismana81 wrote:

I'm almost finished writing a script that uses this file browser to build an image gallery.  I'm really digging it, but I think I'm in a little over my head...

A big problem I'm having is that some images are being rotated on upload.  After doing a little research, I found that these images are actually being displayed correctly, however they contain "exif" data to tell your application what orientation it should use to display them.  So, I guess your application (iphoto, finder, windows explorer, etc...) is actually rotating them every time you look at them.

So I just started to dive into the exif section of the php manual, and it's not really making a lot of sense to me right now.  I thought I might make a quick post here for any suggestions.  Is the exif data something that should be examined and altered on upload, or something that should be examined/altered (in php) every time it is viewed by the end user?  My biggest concern here, is that I think it should be examined and altered on upload, and I'm not sure if that's something that I can incorporate into this file browser. 

Any thoughts?  Any info is much appreciated!  Even if anyone knows of a good intro to exif to get me started, that would be awesome!  Thanks!!!

weismana81,

Why don't you rotate the pictures before uploading?

Currently there are no image editing tools included in PDW File Browser. I'm planning to include some functionality (like rotating and scaling) in an upcoming update.

Guido

195

Re: Another File Browser

Guido,

Everything seems to be working fine, except some unexplained I/O Errors when some files finish uploading (only happened once and didn't understand the cause) and a major error for me that is: when I upload files to a folder created by PDW, it doesn't upload anything but also it doesn't gives any error.
I read this: http://sourceforge.net/tracker/?func=de … id=1455997 and though I could try it to 0777, but it's not working.

More info: When I manually create a folder in FTP an set perms as 0777, it works fine and it uploads files correctly.

SOLVED: PHP safe_mode was On :S

Last edited by neskk (2011-05-31 19:16:33)

196

Re: Another File Browser

hai friends... Guido,
please someone take a look at this usage of the plugin and please tell me what happend...? am not able to see the thumb nails at all.... need absolute help....

http://xxxxxxxxxx.altervista.org/xxxxxx … =stu_img01

Last edited by Nibin (2011-07-08 22:38:58)

197

Re: Another File Browser

What PHP version are you using? Are the permissions for the cache folder set to 777?

198

Re: Another File Browser

thanks guido,  you can see here......

http://xxxxxxxxxxxxxxx.altervista.org/phpinfo.php

Last edited by Nibin (2011-07-08 22:39:17)

199

Re: Another File Browser

and everything in pwd folder is 777

200

Re: Another File Browser

I see you are using a sub domain. You are receiving an error message because the image doesn't exist. Your URL's are like adozionisdv.altervista.org/membri/adozionisdv/images/uploaded/mandato%20ai%20catechisti.jpg and it should be adozionisdv.altervista.org/images/uploaded/mandato%20ai%20catechisti.jpg

/membri/adozionisdv/ shouldn't be in the URL. I think you need to change your $uploadpath