开发者

Uploading files to server without Zend_Form_Element_File

I'm 开发者_开发百科using Zend Framework but i want to upload files to my server with pure HTML & PHP!(No Zend_Form). the big question is, where should i Upload?(url?) and how can i download file from server(how to link to files)? Zend Framework rewrites URLs and i can not link directly to files.


All files are uploaded in "tmp" folder which you can change in php.ini if you like,after request completes php delete the uploaded file from tmp folder automatically so you need to move this file to any location you want . Zend do not rewrite url , to access file directly you need to move files inside public folder , and if you are not using Zend_Form then use Zend_file directly.


Check out the PHP manual, it will help you a lot:

http://www.php.net/manual/en/features.file-upload.post-method.php

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜