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 19. Apr 2024, 23:55

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  [ 34 posts ]  Go to page 1, 2, 3  Next
Author Message
 Post subject: Unique File Names
PostPosted: 22. Jan 2008, 21:36 
Offline

Joined: 22. Jan 2008, 21:34
Posts: 1
Congratulations on an excellent tool.

I would like to know if it is possible to uniquely name a file? If two users upload the same file (configured so user cannot see remote files) It currently just overwrites the filename on the server.


Top
 Profile  
 
 Post subject:
PostPosted: 23. Jan 2008, 22:43 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
right - normaly you get a warning if the remote view is shown.

But you can easily extend the tfu_upload.php not to overwrite files but make e.g number it.

/Michael


Top
 Profile  
 
 Post subject: need this
PostPosted: 9. Oct 2008, 16:25 
Offline

Joined: 9. Oct 2008, 16:24
Posts: 17
I really need for files not to be able to be overwritten.

Code for this exists?

_________________
Chris


Top
 Profile  
 
 Post subject:
PostPosted: 9. Oct 2008, 16:47 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
Hi,

No - Because it's really easy. I don't know what you want. I can make an individual adoption for you.

/Michael


Top
 Profile  
 
 Post subject:
PostPosted: 9. Oct 2008, 16:49 
Offline

Joined: 9. Oct 2008, 16:24
Posts: 17
I just would like that if two users upload the same file or a single user uploads 2 files with the same name it will do something like:

uploadedpic.jpg
uploadedpic(1).jpg

That would work.

Also I really need the enterprise version sent to me, I paid for it a few hours ago, if you could process my order that would be awesome..

One last question. How can I remove the "Joomla Flash Uploader" on the top bar?

Many thanks love the app.

_________________
Chris


Top
 Profile  
 
 Post subject:
PostPosted: 9. Oct 2008, 17:21 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
Hi,

I do registrations when I come home because this stuff is on my other pc. I think in ~ 2 hours you have everything :).

the title can be changed in the registered version.

I pasted you the code I use in tfu of you copy files to the same folder. Because there I do exactly what you need.

if ($ff == $dest) {
$nr = 2;
$dest = $folder . '/Copy of ' . basename($ff);
while (file_exists($dest)) {
$dest = $folder . '/Copy (' . $nr++ . ') of ' . basename($ff);
}
}
if (@copy($ff, $dest)) {
$done++;
} else {
$error++;
}

You only have to adopt this to you need and use this in tfu_upload.php

/Michael


Top
 Profile  
 
 Post subject:
PostPosted: 9. Oct 2008, 17:22 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
it's actually only this you need:

$nr = 2;
$dest = $folder . '/Copy of ' . basename($ff);
while (file_exists($dest)) {
$dest = $folder . '/Copy (' . $nr++ . ') of ' . basename($ff);
}


Top
 Profile  
 
 Post subject:
PostPosted: 9. Oct 2008, 17:24 
Offline

Joined: 9. Oct 2008, 16:24
Posts: 17
Im using JFU that the same as TFU?

Also, please explain exactly how to append that code... I'm newb. :)

I assume I should just wait till I get my registered enterprise version to append it.

Thanks for the responses!

_________________
Chris


Top
 Profile  
 
 Post subject:
PostPosted: 9. Oct 2008, 17:28 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
under the hood - yes.

JFU is the Joomla version of TFU which is adapted and extended to work with Joomla.

you don't have any coding experience? because this code has to be modified a little bit and placed in the right place ...

/Michael


Top
 Profile  
 
 Post subject:
PostPosted: 9. Oct 2008, 17:32 
Offline

Joined: 9. Oct 2008, 16:24
Posts: 17
no but I have modified lots of code, but I always have no clue what im looking at.. haha!

I'm really good at following instructions though.. so If you just tell me exactly where to stick it and what to change, I can do it.

_________________
Chris


Top
 Profile  
 
 Post subject:
PostPosted: 9. Oct 2008, 20:03 
Offline

Joined: 9. Oct 2008, 16:24
Posts: 17
I have set the max file size to 100 and edited my .htaccess to allow php to take 100mb.

For some reason JFU says MAX files size 97mb. any idea why?

_________________
Chris


Top
 Profile  
 
 Post subject:
PostPosted: 9. Oct 2008, 20:14 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
100000 k are not 100 MB.

#removed_broken_link

/Michael


Top
 Profile  
 
 Post subject:
PostPosted: 9. Oct 2008, 20:15 
Offline

Joined: 9. Oct 2008, 16:24
Posts: 17
oh yeah duh lol

sorry

_________________
Chris


Top
 Profile  
 
 Post subject:
PostPosted: 9. Oct 2008, 20:51 
Offline

Joined: 9. Oct 2008, 16:24
Posts: 17
so after applying my license, for some reason the files upload but are not in the directory after upload.

How can I diagnose this?

_________________
Chris


Top
 Profile  
 
 Post subject:
PostPosted: 9. Oct 2008, 20:52 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
before it worked?

/Michael


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 34 posts ]  Go to page 1, 2, 3  Next

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 15 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