Loading...
 
Skip to main content

Documentation


File Upload Problem

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?

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

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 ?

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