Hi there,

Originally Posted by
wormie_dk
I tried installing your script on RC2 manually (copied files and modified theme).
As I am on a shared host I modified
uploader.php
$system_temp and $csvTempFile to link to roundcubes temp dir. However when I upload I get this error:
Warning: move_uploaded_file(/home/***/webmail/temp/import.csv) [function.move-uploaded-file]: failed to open stream: No such file or directory in /home/***/public_html/webmail/csv_upload/uploader.php on line 30
Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpYS6161' to '/home/***/webmail/temp/import.csv' in /home/***/public_html/webmail/csv_upload/uploader.php on line 30
I tried to look through the code but I cannot figure out where /tmp/phpYS6161 comes from...
Couldn't you include the roundcube configuration and then use the built in temp dir?
Thanks
You'll see that on line 28 of uploader.php, the /tmp/phpYS6161 comes from
Code:
ini_get("session.save_path");
This variable is set by your web host, and if you wish to use a different directory (shared hosting, for example), you'll need to change this to your RC temp directory. In this case you should change the line
Code:
$system_temp = ini_get("session.save_path");
to
Code:
$system_temp = "/path/to/your/roundcube/temp";

Originally Posted by
seansan
Maybe you can upload this patch to the bugtracker as type PATCH...
It's a good idea - I'll look at this once the plug-in is a little more developed!
Kind regards,
Ronald.