close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Upload problem

Thread began 8/10/2011 3:53 am by timothy.farrell429144 | Last modified 8/10/2011 8:16 pm by Jason Byrnes | 956 views | 3 replies |

timothy.farrell429144

Upload problem

Tryinng to make a basic upload page. Have followed the getting started guide but no luck. any help is appreciated. the file is below and it's online at:

test1.php

Many thanks.


<?php require_once("WA_DigitalFilePro/HelperPHP.php"); ?>
<?php
// WA_UploadResult1 Params Start
$WA_UploadResult1_Params = array();
// WA_UploadResult1_1 Start
$WA_UploadResult1_Params["WA_UploadResult1_1"] = array(
'UploadFolder' => "dpx/",
'FileName' => "[FileName]",
'DefaultFileName' => "",
'ResizeType' => "0",
'ResizeWidth' => "0",
'ResizeHeight' => "0",
'ResizeFillColor' => "" );
// WA_UploadResult1_1 End
// WA_UploadResult1 Params End
?>
<?php
WA_DFP_SetupUploadStatusStruct("WA_UploadResult1");
if(isset($_POST["submit"])){
WA_DFP_UploadFiles("WA_UploadResult1", "upload", "0", "", "false", $WA_UploadResult1_Params);
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script src="WA_DigitalFilePro/jquery-blockui-formprocessing.js" type="text/javascript"></script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>

<form id="form1" name="form1" enctype="multipart/form-data" method="post" action="">
<label>upload file
<input type="file" name="upload" id="upload" />
</label>
</form>
<div id="form2_ProgressWrapper">
<form id="form2" name="form2" method="post" action="">
<label>
<input type="submit" name="submit" id="submit" value="Submit" />
</label>
</form>
</div>

<p>&nbsp;</p>
<div id="form2_ProgressMessageWrapper" class="blockUIOverlay" style="display:none;">
<script type="text/javascript">
WADFP_SetProgressToForm('form2', 'form2_ProgressMessageWrapper', WADFP_Theme_Options['BigSpin:Slate']);
</script>
<div id="form2_ProgressMessage" >

<p style="margin:10px; padding:5px;" ><img src="WA_DigitalFilePro/images/slate-largespin.gif" alt="" title="" style="vertical-align:middle;" />&nbsp;&nbsp;Please wait</p>

</div>
</div>

</body>
</html>

Sign in to reply to this post

Jason ByrnesWebAssist

you have 2 separate forms, one for the file field and one for the submit button.

the file field and submit button should be in the same form:

<form id="form1" name="form1" enctype="multipart/form-data" method="post" action="">
<label>upload file
<input type="file" name="upload" id="upload" />
</label>
<label>
<input type="submit" name="submit" id="submit" value="Submit" />
</label>
</form>

Sign in to reply to this post

timothy.farrell429144

Thanks Jason. Small files worked but a 9MB file didn;t seem to work. Here is my php.ini.
I added the upload_max_filesize = 20M and changed max_input_time = 60 to 600 but no luck.
Big thanks again


register_globals = off
allow_url_fopen = off

expose_php = Off
upload_max_filesize = 20M
max_input_time = 600
variables_order = "EGPCS"
extension_dir = ./
upload_tmp_dir = /tmp
precision = 12
SMTP = relay-hosting.secureserver.net
url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=,fieldset="


; Only uncomment zend optimizer lines if your application requires Zend Optimizer support

;[Zend]
;zend_optimizer.optimization_level=15
;zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-3.3.3
;zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-3.3.3
;zend_extension=/usr/local/Zend/lib/Optimizer-3.3.3/ZendExtensionManager.so
;zend_extension_ts=/usr/local/Zend/lib/Optimizer_TS-3.3.3/ZendExtensionManager_TS.so


; -- Be very careful to not to disable a function which might be needed!
; -- Uncomment the following lines to increase the security of your PHP site.

;disable_functions = "highlight_file,ini_alter,ini_restore,openlog,passthru,
; phpinfo, exec, system, dl, fsockopen, set_time_limit,
; popen, proc_open, proc_nice,shell_exec,show_source,symlink"

Sign in to reply to this post

Jason ByrnesWebAssist

there are other php directives that effect large file uploads, like post max size.

see the following page for a full list of php directives that effect upload file size:
wap_upload.asp?page=php2

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...