File Upload Problem Posted by pgau 12 Oct 2005 20:51 GMT-0000 posts: 5 Hi, When I upload to database or to directory, the result is this: Warning: move_uploaded_file(tmp/ape_800x600.jpg.tmp): failed to open stream: No such file or directory in /Library/WebServer/Documents/tiki/tiki-upload_image.php on line 171 Can someone help?
Posted by sylvie greverend 13 Oct 2005 14:09 GMT-0000 posts: 1092 You need to check if you have a tmp directory and if it is writeable by the server. You can change the tmp directory in your settings (admin->general screen) sylvie
Posted by pgau 13 Oct 2005 19:37 GMT-0000 posts: 5 > You need to check if you have a tmp directory and if it is writeable by the server. > You can change the tmp directory in your settings (admin->general screen) > sylvie Thanks Sylvie, I got it to upload now. Still got some questions though... 1. How can I save it in a directory? I specified a folder for it to go into but I checked the folder and the files are not in there! 2. How can I change the URLs so that it displays http://mydomain.com/galleryName/fileName ?
Posted by sylvie greverend 14 Oct 2005 11:04 GMT-0000 posts: 1092 > 1. How can I save it in a directory? I specified a folder for it to go into but I checked the folder and the files are not in there! Set the directory in admin -> files galleries (tiki-admin.php?page=fgal) > > 2. How can I change the URLs so that it displays http://mydomain.com/galleryName/fileName ? You can find information on SEFURLs or SEFURLsDev or TikiWikiRewriteRule. They are far away to be perfect. The difficult part is the outputfilter - the part that rewrite the links of tw. A lot of people have their own output filter (I have one not perfect too). Some people have replaced also the rewrite rules with an acceptpathinfo (the part that understands the urls).... I don't know if somebody has an enough good solution to commit to tw. sylvie