The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
|
![]() |
File upload path is wrong in show_submissions - Printable Version +- Form Tools (https://forums.formtools.org) +-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1) +--- Forum: General Discussion (https://forums.formtools.org/forumdisplay.php?fid=5) +--- Thread: File upload path is wrong in show_submissions (/showthread.php?tid=725) |
File upload path is wrong in show_submissions - morphiex - May 31st, 2010 Hi first of all Form tools is awesome, really nice features that are perfect for my current project. The problem i am having is that when i upload a file it works great ,the uploaded file goes into the orrect folder i specified but when i want todisplay the files(photos) in my page with the form_submissions function the path for the files are wrong. example: i upload the file, the file goes to the correct folder (http://www.site.com/folder/images/image.jpg) butwhen i want to display the files on a page the path file is set as (http://www.site.com/image.jpg) is this a bug or have I overseen something? Edit1: ok i understand the problem a little better now , the file export module exports the file name with the file type not the url of the file which is hat i am after. Edit2: Ok i tried the guide thats here : http://forums.formtools.org/showthread.php?tid=612 but yeah it managed to add the <ahref=""><img src=""></a> to the photos but still the url is havign the same problem as before , the path for the images aren't correct ... =/ Oh and yeah i added the image gallery module, and the images show up perfectly the form works as intended i just cant figure out why the url is wrong for the images when i try to display them. Edit3: Ok i fixed the issue now, he problem was i forgot to customize the options for the file upload field.. doh! anyways awesome work guys , now i gotta figure out how to display the thumbs , wich shouldnt be too hard. Edit 4: EVERYTHIGN WORKS CORRECTLY NOW!!! lol thanks alot guys =) RE: File upload path is wrong in show_submissions - Ben - Jun 1st, 2010 Yeah - apologies about #3. Known bug. Must fix!!!!!!! Glad you got it sorted out. ![]() - Ben |