TinyPortal

Development => Support => Topic started by: DarkMain on February 08, 2006, 12:28:09 AM

Title: Download manager and FTP
Post by: DarkMain on February 08, 2006, 12:28:09 AM
Is it possable to upload a large file to the tp-download dir and then "add" it to the download manager?
Title: Re: Download manager and FTP
Post by: bloc on February 08, 2006, 05:56:26 PM
Well..if you simply upload a small file - it can be anything - and call it the same as your file, you can re-upload through ftp the bigger file. mind you, the saved size will  be wrong.

This needs to be improved.
Title: Re: Download manager and FTP
Post by: Minsc on February 10, 2006, 02:20:35 PM
I was wondering the same thing.  Looking forward to future improvements.
Title: Re: Download manager and FTP
Post by: haktanir on February 28, 2006, 02:40:28 PM
Almost everyone trying to upload files in my forum just freeze if they try to upload anything over 3 MBs. A better upload method is definately a must.
Title: Re: Download manager and FTP
Post by: IchBin on March 01, 2006, 06:13:24 AM
What is TP and PHP set to in your site/server?
Title: Re: Download manager and FTP
Post by: haktanir on March 01, 2006, 11:12:12 AM
Quote from: IchBinÃ,â,,¢ on March 01, 2006, 06:13:24 AM
What is TP and PHP set to in your site/server?
If you mean the server settings for timing out, I really don't know and don't have any control over that. So yeah logically if I had control over something like that I could find a solution. But I've never timed out in FTP to my service provider.
Title: Re: Download manager and FTP
Post by: bloc on March 01, 2006, 11:16:32 AM
FTP and HTTP is different..so while you can ftp up well, it may fail on uploading through HTTP.

But I will add the option of just selecting files already ftp'ed up through a ftp program, never having to use the upload function at all. it will also filter out those you have already in the dl manager records.
Title: Re: Download manager and FTP
Post by: ontap on March 01, 2006, 11:22:44 AM

the uploads dont really work well for me threw the download manager, when uploading big files i get

"The upload was not able to complete.This might happen because it took too long to upload or the file is bigger than the server will allow.

Please consult your server administrator for more information."

gota ftp the big files and re-name it in the database.
Title: Re: Download manager and FTP
Post by: IchBin on March 01, 2006, 01:17:29 PM
Thats why I asked what the server settings are. If you're php config file is only allowing you to upload a 2 meg file, then uploading anything bigger through the HTTP part as Bloc pointed out will not be an option for you. Good thing Bloc can take care of things for you guys that don't have control over your php config. :)
Title: Re: Download manager and FTP
Post by: evillair on March 01, 2006, 02:21:37 PM
I get that error too.

I don't quite get it, I checked my php.ini and it is at 2 megs. But with coppermine I can upload files bigger then that with no issues.
Why can I upload bigger files in other upload areas though?
(I can upload huge files on my other CMS's on the same server for example)

(I raised the limit in the .ini file but I presume that the server needs to be restarted.)
Title: Re: Download manager and FTP
Post by: bloc on March 01, 2006, 06:17:00 PM
I will take a look at coppermine, it may be some custom uploading in steps done there. But...are you sure you can upload a 3-4 mb graphic file through coppermine?
Title: Re: Download manager and FTP
Post by: evillair on March 01, 2006, 06:25:16 PM
yes...check the file size...
http://pixelmorgue.com/galleries/displayimage.php?album=4&pos=7
I uploaded this one, almost 4 megs. :)

I uploaded a 50 meg file through my personal site's uploader (e107 cms) and it's on the same server (pixelmorgue is actualy a subdomain)
Title: Re: Download manager and FTP
Post by: haktanir on March 03, 2006, 09:21:43 AM
Quote from: Bloc on March 01, 2006, 11:16:32 AM
But I will add the option of just selecting files already ftp'ed up through a ftp program, never having to use the upload function at all. it will also filter out those you have already in the dl manager records.
Excellent idea.
Title: Re: Download manager and FTP
Post by: haktanir on March 03, 2006, 09:24:11 AM
Quote from: IchBinÃ,â,,¢ on March 01, 2006, 01:17:29 PM
Thats why I asked what the server settings are. If you're php config file is only allowing you to upload a 2 meg file, then uploading anything bigger through the HTTP part as Bloc pointed out will not be an option for you. Good thing Bloc can take care of things for you guys that don't have control over your php config. :)
Yes but I have the same case as evillair. I've uploaded up to 7-8 MBs with Coopermine with no problems. I only have that server problem in TP.
Title: Re: Download manager and FTP
Post by: bloc on March 03, 2006, 09:56:18 AM
I looked some at coppermine, and it seems to use a different technique..exactly what the differences are, I am not sure right now. I will need to check further.
Title: Re: Download manager and FTP
Post by: ciba on March 03, 2006, 11:00:02 AM
In my case, I changed the capacity of the allowed upload size to 50MB. And I don't have any problems uploading the files.
Title: Re: Download manager - privileges
Post by: fugi on March 04, 2006, 11:33:39 AM
Can I define a usergroup different from admins, say moderators,
who will have access to managind download manager?
Thanks
Title: Re: Download manager and FTP
Post by: gerrymo on March 04, 2006, 12:22:37 PM
Quote from: Bloc on March 01, 2006, 06:17:00 PM
But...are you sure you can upload a 3-4 mb graphic file through coppermine?

With Coppermine you can specify the file types, and upload limits for each usergroup, so it should work for all files.
Title: Re: Download manager and FTP
Post by: bloc on March 04, 2006, 04:38:17 PM
Quote from: fugi on March 04, 2006, 11:33:39 AM
Can I define a usergroup different from admins, say moderators,
who will have access to managind download manager?
Thanks
Yes. You just go into permissions, find the group and add the permission "manage downloads". They will also then be "pre-approved" in uploads of course.
Title: Re: Download manager and FTP
Post by: fugi on March 04, 2006, 11:47:36 PM
Quote from: Bloc on March 04, 2006, 04:38:17 PM
Quote from: fugi on March 04, 2006, 11:33:39 AM
Can I define a usergroup different from admins, say moderators,
who will have access to managind download manager?
Thanks
Yes. You just ginto permissions, find the group and add the permission "manage downloads". They will also then be "pre-approved" in uploads of course.

U mean the permissions in SMF admin panel right?
There's no such option.
Title: Re: Download manager and FTP
Post by: Gargoyle on March 05, 2006, 12:40:07 AM
Uploading in steps.... Is that a plausible solution ?
Title: Re: Download manager and FTP
Post by: bloc on March 06, 2006, 09:51:09 AM
I haven't found any info on that..so if it exists its well hidden.
Title: Re: Download manager and FTP
Post by: bloc on March 06, 2006, 09:52:52 AM
Quote from: fugi on March 04, 2006, 11:47:36 PM
Quote from: Bloc on March 04, 2006, 04:38:17 PM
Quote from: fugi on March 04, 2006, 11:33:39 AM
Can I define a usergroup different from admins, say moderators,
who will have access to managind download manager?
Thanks
Yes. You just ginto permissions, find the group and add the permission "manage downloads". They will also then be "pre-approved" in uploads of course.

U mean the permissions in SMF admin panel right?
There's no such option.

Yes, there is. If everything went well during installation, you should have a "TinyPortal" section with 4 new permissions.
Title: Re: Download manager and FTP
Post by: fugi on March 06, 2006, 07:25:39 PM
hm, problable sth didn't go well.
Which file is responsible for this section?
If I run it again now, will it work?
Title: Re: Download manager and FTP
Post by: bloc on March 07, 2006, 01:46:14 AM
ManagePermissions.php is the spot where these appear. Try re-install and check any failures.
Title: Re: Download manager and FTP
Post by: fugi on March 07, 2006, 09:57:40 AM
I couldn't install it through package and so I tried manual install and received the following errors.
http://www.tinyportal.net/smf/index.php?topic=2481.msg26496#msg26496
http://www.tinyportal.net/smf/index.php?topic=2481.msg26501#msg26501
I don't know if they are relevant to the problem, the tihng is that I still can't use package manager,
so how will i re-install it? By running tp_manual_install or that file with the strange number :) in front?
Title: Re: Download manager and FTP
Post by: fugi on March 07, 2006, 10:09:42 AM
Well I re-run the intall_tp_manual and got the following

    * Upshrink table exists
    * Settings table exists
          o Reset theme changer
          o Updated version to 086
    * Blocks table exists
    * Variables table exists
    * Articles table exists
    * Dlmanager table exists

TinyPortalÂÃ,´s table structure is now installed/updated.


I suppose now everything should be ok, but in the permissions I again don't have any TP section  ???
Title: Re: Download manager and FTP
Post by: bloc on March 07, 2006, 11:10:03 AM
mm, did you do the manual modifications to among others, ManagePermissions.php?
Title: Re: Download manager and FTP
Post by: fugi on March 07, 2006, 11:40:03 AM
 :idiot2: :idiot2: :idiot2:

ManagePermisions is after index.template.php and I didn't see it.
When I made all the above changes and reached to index.template  i closed the file (cos I thought i can get easy the theme from TP site) and didn't see the rest.
I'll do them now.

So stupid!