Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum

Get help for TinyWebGallery, the best image gallery. The forum is also home for the Joomla JFUploader, TWG Flash Uploader and the Wordpress flash uploader.
It is currently 27. Nov 2024, 12:52

This forum is readonly now. Please use the new forum if you don't find the answer to your question here. The new forum is at https://www.tinywebgallery.com/blog/forum/


All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 13 posts ] 
Author Message
 Post subject: Can't create folders
PostPosted: 25. Nov 2008, 08:16 
Offline

Joined: 25. Nov 2008, 08:03
Posts: 3
Yesterday I downloaded and installed your Flashuploder 2.8.1 J15. It works very fine and its a great tool.

Only 1 problem i have : I can't creat folders

I found the article from last year - but they don't help because i cant find the file tfu_readDir.php in my installation.

Could you pleas help me.
Many thanks
Andy


Top
 Profile  
 
 Post subject:
PostPosted: 25. Nov 2008, 09:23 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
tfu_readdir is now integrated into tfu_file.php because everything was nicely refactored.

If you cannot create folders - does the flash do not offer this for you or does the flash offer it and the creation fails?

/Michael


Top
 Profile  
 
 Post subject:
PostPosted: 25. Nov 2008, 22:49 
Offline

Joined: 25. Nov 2008, 08:03
Posts: 3
Thanks for your fast answer! I found the file.

To your question: I see the option "Ordner anlegen" in the menu in my frontend - but i can't choose it. What can I do?

Thanks


Top
 Profile  
 
 Post subject: Same here
PostPosted: 25. Nov 2008, 22:50 
Offline

Joined: 25. Nov 2008, 22:31
Posts: 5
Same here.
I have Joomla Flash Uploader 2.7.4 on joomla 1.0.15, working like a charme after making some fixes a while ago.

Problem on another joomla 1.0.15 site with Joomla Flash Uploader 2.8 installed. The option for "Create folder" is visible but grey. In this version indeed the tfu_readdir isn't there anymore and i don't find the same options in the other files.

Installing the 2.7.4 version on this site seems not to work. Ik get a server error 500 "page not found". There seems to be an error in the installation folder.

Could you pleas supply a solution for the "create folder" option, or give a download link for a correct 2.7.4 package (I didn't find this one at your site anymore, so downloaded one from another site at the internet)

Thanks a lot.
Chris


Top
 Profile  
 
 Post subject:
PostPosted: 25. Nov 2008, 23:59 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
I try to detect if creation of folders makes sense. e.g. on system with safe mode folders can be created but no files uploaded to this folders because of the different owners. Is you system running with safe mode?

This detection not 100% correct but you can simply overwrite the detection.

In JFU 2.8 TFU 2.8 is included which was refactored. tfu_readDir.php is now nicely integrated in tfu_file.php and the check you have to look for is in
check_restrictions in the tfu_helper.php.

What fixes have you made in JFU 2.7.4? Maybe some of them would be usefull in the 2.8 version.

/Michael


Top
 Profile  
 
 Post subject: Safe mode
PostPosted: 26. Nov 2008, 00:09 
Offline

Joined: 25. Nov 2008, 22:31
Posts: 5
Hi,

Both sites are located on a server of one.com.
Safe mode is in both sites on (cannot be set off)
One uses an emulation for safe mode.
Safe mode is not the (only) problem since it works on the 2.7.4 version.
Shame on me. I don't know which fixes I made, but I think it had something to do with this forum topic http://www.tinywebgallery.com/forum/vie ... php?t=1320

I'll try to remember or find out the changes.
It couldn't be something with configurations to the joomla core files ?

I'll have a look athe the check_restrictions in the tfu_helper.php for JFU 2.8

Could you please send me a copy of the 2.7.4 version, so i can compare the original files, with my (adjusted ?) version.


Top
 Profile  
 
 Post subject:
PostPosted: 26. Nov 2008, 00:18 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
This thread does cover the same problem with the safe mode.

The check_restrictions is exactly the same. I have only created nice functions which makes the code much easier to read.

I have send you the 2.7.4 version. It would be interesting for me to know what you have changed.

/Michael


Top
 Profile  
 
 Post subject: Changes to 2.7.4
PostPosted: 26. Nov 2008, 00:36 
Offline

Joined: 25. Nov 2008, 22:31
Posts: 5
I think it has to do something with this line in the tfu_readdir.php
I changed this
$status .= ($sm_prob) ? "&dir_create=subdir" : "&dir_create=true";
to
$status .= ($sm_prob) ? "&dir_create=true" : "&dir_create=true";

Could it be this change ?
Greetings,
Chris


Top
 Profile  
 
 Post subject: Fixed . Yes, yes, yes
PostPosted: 26. Nov 2008, 00:44 
Offline

Joined: 25. Nov 2008, 22:31
Posts: 5
Hi,
Changing the line in my post above fixed my problem.
I changed the line in tfu_helper to
$status .= ($sm_prob) ? "&dir_create=true" : "&dir_create=true";

Could you please check if this could really be the trick, or does this trick have som risks, contra arguments ?

Maybe this one could be a solution for other one.com users ?

I'll ask a friend of mine to test this on a one.com joomla 1.5 version.

Greetz ... I'm gonna have some sleep now.


Top
 Profile  
 
 Post subject:
PostPosted: 26. Nov 2008, 08:17 
Offline

Joined: 25. Nov 2008, 08:03
Posts: 3
I've made this changes in tfu_helper - and now it works.

// -----------------
// if (is_writeable($dir)) {
// $status .= ($sm_prob) ? "&dir_create=subdir" : "&dir_create=true";
$status .= ($sm_prob) ? "&dir_create=true" : "&dir_create=true";
// } else {
// $status .= ($sm_prob) ? "&dir_create=safemode" : "&dir_create=false";
// }
// -----------------

Is it ok - or could be with this changes some troubles?
Thanks
Andy


Top
 Profile  
 
 Post subject:
PostPosted: 26. Nov 2008, 09:45 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
As I said. There is the safe mode problem. And this is the detection for it.

Normally if safe mode is enabled and you create a directory then you get an error when you upload to this folder. This is why I disabled it.

If this is not the case on your system - your are lucky. If you do the change and you can create folders AND upload images in this folder then there are no problems.

/Michael


Top
 Profile  
 
 Post subject: Safe mode emulation
PostPosted: 26. Nov 2008, 09:57 
Offline

Joined: 25. Nov 2008, 22:31
Posts: 5
Probably, in my case it has something to do with the "safe mode emulation" used on the One.com servers.


Top
 Profile  
 
 Post subject:
PostPosted: 26. Nov 2008, 09:59 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
This could be the case. But every server is different and I have to go for the other 99% ;).

/Michael


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 13 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron
powered by phpbb | Datenschutz/ Privacy policy