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

Vintage page containing DigitalFilePro upload block want make sure correct

Thread began 2/07/2014 11:45 am by msummers194171 | Last modified 2/07/2014 1:49 pm by Jason Byrnes | 310 views | 10 replies |

msummers194171

Vintage page containing DigitalFilePro upload block want make sure correct

My page contains this block of code -

WA_DFP_SetupUploadStatusStruct("WA_UploadResult1");
if(isset($_POST["submit2"]) ){

WA_DFP_UploadFile("WA_UploadResult1", "fileField", "", "uploads/", "[FileName]", "2", "[FileName]_[Increment]", "0", "false", "0", "0");
$To='claims@starhealthcarenet.com';
//$To='msummers@great-web-sights.com';
$Subject='Star Healthcare Claim Submitted';
$From='website@starhealthcarenet.com';
$mailHeaders = 'MIME-Version: 1.0' . "\r\n";
$mailHeaders.= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
//$mailHeaders.= 'Content-Transfer-Encoding: quoted-printable' . "\r\n";
$mailHeaders.="From:\"Claims at StarHealthcare Network<website@starhealthcarenet.com>\"\r\n";
//$mailHeaders.="BCC:msummers@great-web-sights.com\r\n";
$Message="<body><p>A new Claim has been submitted and can be found here:</p><br>";
$Message.='<p style="color:red;"><a href="http://www.starhealthcarenet.com/uploads/'.rawurlencode($_SESSION['s_claims_fileField']).'">Click to fetch file</a>'."<br></p>";
$Message.="<p>Thank you!</p><p>The Management</p></body></html>";
mail($To,$Subject,$Message,$mailHeaders) or die("Email could not be sent");
$mailSent=1;
}
?>

But I'm not getting any upload happening. I'm certain that this worked at one time. Can you help me get it going, please?

Sign in to reply to this post

Jason ByrnesWebAssist

i need to see the code in context, please attach a copy of the page.

Sign in to reply to this post

msummers194171

I have attached the file to the original post.

Sign in to reply to this post

Jason ByrnesWebAssist

you have this line:
echo "<pre>";exit(print_r($_FILES));


which exits before the upload.

Sign in to reply to this post

msummers194171

Sorry for confusing you. That is some debugging code that I inadvertently left in the code. Please ignore that line. Without it, I get no upload.

Sign in to reply to this post

Jason ByrnesWebAssist

what version of Digital File pro?

It looks like there is a block of code missing that should be before the DFP status struct


create a ne blank page and add the upload to it, with out adding the email code, can you get it to work that way?

Sign in to reply to this post

msummers194171

Jason, I'm not sure which version I was running when I built this page - probably something around 110 or 111.

I'll try the new page thing and post back.

Sign in to reply to this post

msummers194171

Well, whaddya know? That works. Looks like I just took your place on the hook! :)

Now to figure out what I did wrong...

Thanks, Jason.

Sign in to reply to this post

Jason ByrnesWebAssist

glad to hear it is working.

Sign in to reply to this post

msummers194171

In case you are interested, the mistake was well down on the page in a block where I was testing to see if the upload email had been sent and it was this bit of code -

a response.</p>
<? } ?>

Note the missing "php" in the opening php tag! Wonder why that wouldn't show up as an error on the page! Anyhow, it's working now. Thanks again.

Sign in to reply to this post
loading

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...