View Full Version : User Form Uploads
robvelton
4-20-05, 05:07 AM
I have been having excel download problems on my site. HOwever, I uploaded an excel through ftp and it downloaded fine. The only problem with that is that it is not dynamic. I have a file field in one of my forms to upload excel files.
My Question: Does Powweb allow this?
Rob
RTH10260
4-20-05, 08:54 AM
I have been having excel download problems on my site. HOwever, I uploaded an excel through ftp and it downloaded fine. The only problem with that is that it is not dynamic. I have a file field in one of my forms to upload excel files.
My Question: Does Powweb allow this?Don't know about a 'file field' at the moment, is this a command button to upload data, or an ActiveX element to assist the upload ?
Anyhow, if that feature uses FTP for communications and you define the correct account, both upload and download should work. If the upload uses HTTP protocoll then you need a wepage with scripting to take over the data of the upload. Possibly the Microsoft applications are expecting the Frontpage Extensions to be active. Activate them in OPS.
robvelton
4-20-05, 01:55 PM
Yeah I tried to just install from page extensions, but I get a Internal Server Error 500.
Not sure why I would have to do that for <input type="file">...
Here is my php code for the upload as well.
$uploadFileName = time()."_".$_FILES['productExtraFile']['name'];
move_uploaded_file($_FILES['productExtraFile']['tmp_name'], $GLOBAL['EXTRAS_FILE_PATH'].$uploadFileName);
ptpghost
4-20-05, 01:57 PM
If you are talking about the file upload item in a typical HTML form then yes powweb allows them however you do need a scripting language to process the information and you need a custom php.ini file to setup a correct 'tmp' upload directory. Check out B&T's site (tips.prettyworthless.com (http://tips.prettyworthless.com)) and you can find the code to do both.
robvelton
4-20-05, 02:08 PM
okay here is what my problem was the whole time.... I knew it was something simple... :(
chmod($GLOBAL['EXTRAS_FILE_PATH'].$uploadFileName, 0644);
okay I am going to bang my head against the wall now... thanks for all the inputs and dealing with my frustrations.
Rob
RTH10260
4-20-05, 02:32 PM
Not sure why I would have to do that for <input type="file">...
Here is my php code for the upload as well.
$uploadFileName = time()."_".$_FILES['productExtraFile']['name'];
move_uploaded_file($_FILES['productExtraFile']['tmp_name'], $GLOBAL['EXTRAS_FILE_PATH'].$uploadFileName);Just in case you haven't picked up the detail from elsewhere in the forums:
You need to define an own upload directory within your account (outside of /htdocs for security!), have your own copy of PHP.INI in the root of your website (don't forget to update from the the Powweb standard version periodically), and possibly increase the maximum file size permitted (now 2MB),
vBulletin v3.6.0, Copyright ©2000-2009, Jelsoft Enterprises Ltd.