Batch import

Phoca Download - download manager
zzzzk
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 02 Mar 2016, 00:42

Batch import

Post by zzzzk »

Hello, I have a large number of files on an external server I would like to batch import, but keep the files on the external server. Is there any way to do this without having to do them one at a time? Import a text file? Or add directly to the database? Some other way? :idea: Thank you
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48566
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Batch import

Post by Jan »

Hi, there is no such option, so the easiest way is to do in database per SQL directly - e.g. in phpMyAdmin - just creeate one file in Phoca Download and export this item in phpMyAdmin - so you will know the row structure - such you can use e.g. with some automatic php script to produce other rows with external urls (e.g. you will create an array of external urls, you put them to foreach and make SQL query string for each row and all rows then you will add to the database)

Jan
If you find Phoca extensions useful, please support the project
zzzzk
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 02 Mar 2016, 00:42

Re: Batch import

Post by zzzzk »

Thank you, I will try that.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48566
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Batch import

Post by Jan »

Ok
If you find Phoca extensions useful, please support the project
Post Reply