Forums / General / Bulk uploading: Would it work that way?
Sebastian Picklum
Tuesday 24 January 2006 7:29:41 pm
Browsing through the source code, I found the function
function handleLocalFile( &$result, $filePath, $location, $existingNode )
As I've been looking for a way to do bulk uploading via FTP, I'm wondering if a PHP script that loops this function several times would place uploaded FTP-files correctly in the eZ Publish repository.
Hasn't there been a short description on writing modules in documentation? Can't find it anymore...
Regards Sebastian
sp@php.net
Gabriel Ambuehl
Wednesday 25 January 2006 6:37:06 am
How about just using WebDAV? That's by far the easiest way for mass uploads... And any of the current OS can do it without requiring additional clients.
It would obviously be possible to write a module to do what you want but it might not be worth the work.
Visit http://triligon.org
Wednesday 25 January 2006 7:04:51 am
The problem with WebDAV is that I'm using MacOS X. When I upload a File using the OSX Finder or Goliath, I gets corrupted (File size shows <100 bytes and I see two files: "._example.jpg" and "example.jpg".
Secondary, the company which hosts my private eZ Publish installation doesn't allow WebDAV "for security reasons".
Xavier Dutoit
Wednesday 25 January 2006 7:21:30 am
Hi,
To find modules examples, the easiest is probably to go to pubsvn and browse the existing ones.
Beside the stupidity of the argument about security (that seem to be a valid reason to justify about anything, from doing a war on the gulf to spying on all your citizens), you don't need them to install anything, as that's just a matter of creating a new virtual domain and add a few rewrite rules.
X+
http://www.sydesy.com
Wednesday 25 January 2006 2:23:59 pm
Of course I could browse the SVN. But it would be nicer to have a specification how certain things have to be done. I don't want to destroy my db...
I don't no either why my new hosting company regards WebDAV as insecure. Especially because they do nearly everything else (I also got my eZ publish installation done by one of the server admins - saved some time...).
Btw. I managed to setup WebDAV on a dedicated test-server but I couldn't access it via any of the Mac-clients. When using cadaver on my local linux box, I can see the root directory of the server with the "plain_user" siteaccess. But I can't get in because the authentication fails (even with user "admin").... Argh!