Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
upload w/ script
#4
(03-17-2011, 10:22 PM)max Wrote: Hey,

(09-17-2010, 03:44 PM)matteo lucarelli Wrote: The script should call op/op.AddDocument.php passing the required $_FILES and $_POST variables.
If you make some try please post your results to the forum.

I have successfully uploaded around 60 documents at a time using the addDocument function in op/op.AddDocument.php file but I didn't use the $_FILE variables.
I had to use wget instead to pass my file location to a script . There are a lot of limitations to this approach, for instance wget takes only one parameter in the query string.
Also you will need to supply your session variables to wget inorder for it to gain access to letoDMS.

BTW, can you tell me how can I pass $_FILES and $_POST variable to a php file? It would be much easier to use this.

Thanks.

Generally, the wget approach works and it should be possible to pass more than one parameter. If that really doesn't work there is still curl which can definitely handle session (cookies) and do what you want.

Anyway, I would not recommend to do the upload over http but rather use the functions of LetoDMS_Core. That's what is was made for. It is the core functionality of LetoDMS.

I'm planing to distribute a simple command line upload script with one of the next versions (possibly in 3.2.0).

Uwe
Reply


Messages In This Thread
upload w/ script - by hoedlmoser - 08-03-2010, 04:38 AM

Forum Jump:


Users browsing this thread: