PDA

View Full Version : How to upload a file to a specific HTTP Path using Kettle ?



satran
06-25-2012, 01:43 AM
We are having a download link on the dashboard created by xaction which in turn call pdi job when clicked .The pdi will extract the related details in excel file.I want that file to be stored in common location that can be accessed by the end uses so the location shud be a share point location. Can anyone help me regarding this ?? :confused:

marabu
06-25-2012, 01:59 AM
Uploading a file to a web server?

Have a look at job entry "File Management/HTTP".

satran
06-25-2012, 02:26 AM
But I guess HTTP is used to pull file from the Web Server:confused:http://wiki.pentaho.com/display/EAI/HTTP .. Even we tried that , we are facing some authentication errors there.

marabu
06-25-2012, 03:57 AM
See that parameter "Upload File" in the HTTP configuration dialog?
That's what made me think you could use it for uploading a file.
Seems to be a trap, though.

Meanwhile there are other options: FTP, SFTP.
You even could resort to a shell based solution.

PS: Just tried for myself and everything went smooth. What's your problem again?

URL = http://localhost/upload
Upload file = C:\test.txt
Target file = C:\dummy

URL must point to a directory.
Target file will receive any response data from the web server.