close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Universal Email with Digital File Pro 1 uploaded attachment

Thread began 10/05/2009 10:51 pm by julie.wolpers133706 | Last modified 10/14/2009 11:55 am by jkw133706 | 2632 views | 8 replies |

julie.wolpers133706

Universal Email with Digital File Pro 1 uploaded attachment

I am using Digital File Pro 1 for asp with Universal Email 3.0.6 to upload a resume to the server and also email it as an attachment and the file is getting uploaded to the server but I keep getting this error:

Server.MapPath() error 'ASP 0172 : 80004005'

Invalid Path

/jobs-test.asp, line 42

The Path parameter for the MapPath method must be a virtual path. A physical path was used.

Line 42 from the file has this code in it:

set WA_MailObject = WAUE_AddAttachment(WA_MailObject,"" & cStr( Server.MapPath(WA_DFP_UploadStatus.Item("WA_UploadResult1").serverDirectory) ) & "/" & cStr( Server.MapPath(WA_DFP_UploadStatus.Item("WA_UploadResult1").serverFileName) ) & "")

I am following the instructions in:
dfp_universal_email_attachments.pdf

Thank you!

Sign in to reply to this post

Jason ByrnesWebAssist

In asp, universal email gets the server path for you, so it is not necessary to use the serverDirectory binding.


change:
set WA_MailObject = WAUE_AddAttachment(WA_MailObject,"" & cStr( Server.MapPath(WA_DFP_UploadStatus.Item("WA_Upload Result1").serverDirectory) ) & "/" & cStr( Server.MapPath(WA_DFP_UploadStatus.Item("WA_Upload Result1").serverFileName) ) & "")


to:
set WA_MailObject = WAUE_AddAttachment(WA_MailObject,"" & cStr( Server.MapPath(WA_DFP_UploadStatus.Item("WA_Upload Result1").serverFileName) ) & "")

Sign in to reply to this post

jkw133706

Getting a new error

Thanks. Did that, but now get this error:

Microsoft VBScript runtime error '800a01a8'

Object required: 'WA_DFP_UploadStatus.Item(...)'

/jobs-test.asp, line 42

I guess I'm doing something else wrong!

Sign in to reply to this post

Jason ByrnesWebAssist

Probably the Image upload code is after the email code.

Send a copy of your page in a zip archive so I can examine the code.

Sign in to reply to this post

jkw133706

thanks, here's the file

Zip file attached.

Attached Files
jobs-test.asp.zip
Sign in to reply to this post

Jason ByrnesWebAssist

there is a space in the code causing the error. My fault, I should have put the code correction in code tags.


change:

set WA_MailObject = WAUE_AddAttachment(WA_MailObject,"" & cStr( Server.MapPath(WA_DFP_UploadStatus.Item("WA_Upload Result1").serverFileName) ) & "")




to:

set WA_MailObject = WAUE_AddAttachment(WA_MailObject,"" & cStr( Server.MapPath(WA_DFP_UploadStatus.Item("WA_UploadResult1").serverFileName) ) & "")
Sign in to reply to this post

jkw133706

thanks, new error

Thank you so much. I think we're getting closer! The file did get uploaded but I got a new error, I think because the email portion of the script is not able to find the file so there is some kind of path issue. I've attached the file with your corrected code here, and this is the new error message:


CDO.Message.1 error '80070002'

The system cannot find the file specified.

/WA_Universal_Email/CDOSYS_VB.asp, line 11

Attached Files
jobs-test.asp.zip
Sign in to reply to this post

Ray BorduinWebAssist

Use:

set WA_MailObject = WAUE_AddAttachment(WA_MailObject,"" & cStr( Server.MapPath("/assets/uploads/" & WA_DFP_UploadStatus.Item("WA_UploadResult1").serverFileName) ) & "")

Sign in to reply to this post

jkw133706

Thank you, that worked!

I appreciate your help!!! Thanks.

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