Umbraco is turning 5!
There's already 324 people signed up for the February 16th celebrations, what about you? join now

email documents as attachment using doc2form

7/1/2009 12:36:35 PMAvatartrfletchLocation: Rochester, UKposts: 308Karma: 251

Hi,

I am creating a website in Umbraco V4 and I want to have a job application form on the website, I would like applicants to be able to upload their CV which will get emailed as an attachment with the results of their form. Is this possible using Doc2form? I tried adding an upload field which seemed to let me pick a file but the file did not get attached to the email it just showed a link to the file but the link did not work. Can anyone help with this? Thank you for your time.

7/1/2009 1:03:24 PMAvatardandrayneLocation: Edinburghposts: 738Karma: 1246
Comment with ID: 8340

Hi there

Are you using ajax on the form?  if so turn it off and try again - this apparently causes problems with uploads.  Validation also probably won't work.

I've tested it on Doc2Form3 on Umb 4021 with ajax turned off and tested that it's working fine, so try that out and see how you go.

Dan

7/1/2009 1:15:04 PMAvatartrfletchLocation: Rochester, UKposts: 308Karma: 251
Comment with ID: 8341

Hi,

Thank you for the quick response, ajax is turned off and there is not validation but it still doesn't seem to work. It seems that a folder is created under media for the document but no file is in the folder. I am using doc2form3 on umbraco 4.0.1

7/1/2009 2:14:27 PMAvatardandrayneLocation: Edinburghposts: 738Karma: 1246
Comment with ID: 8347

If you are using the latest Doc2Form for umbraco 4, ajax off and your permissions are correct then I can't see why this wouldn't work. Are you also publishing a node when the form is submitted or are you simply sending emails?  For me the link in the email was incorrect (there were spaces in the filename so the link was cut short) but the file was saved along with the node as I'd expect.

7/1/2009 5:48:32 PMAvatartrfletchLocation: Rochester, UKposts: 308Karma: 251
Comment with ID: 8360

I am not publishing the node, I am literally just using an email form, the link was not correct for me when I selected a file that had spaces in but I selected a file that did not have spaces to resolve that issue but if I go onto the server and check the media folder I can see that the folder has been created but there is not a file within it. I assume by permissions you mean NETWORK SERVICE has full control of the media folder which it does.

7/3/2009 11:29:56 AMAvatartrfletchLocation: Rochester, UKposts: 308Karma: 251
Comment with ID: 8511

Hi,

Anyone got any other suggestions on this? I have now upgraded the site to 4.0.2.1 and I have even tried using the complete doc2form rather than the email one but it still does not save the document in the media folder that it creates!

 

7/3/2009 12:27:41 PMAvatardandrayneLocation: Edinburghposts: 738Karma: 1246
Comment with ID: 8515

There isn't much information out there on this except here, and the fact that I tested it on a clean install and a fairly simple form and found it to be working (to my surprise, actually).

I'd try stripping your form back to the very basic, ensure that ajax="0" in the macro code, no paging is being used etc.  Try again with just a text field and upload field?  Strange one, given that I can't replicate the problem.

7/3/2009 5:02:20 PMAvatartrfletchLocation: Rochester, UKposts: 308Karma: 251
Comment with ID: 8542

This really is a strange one, I have just tried it on another website and it doesn't work on that one either. I definately have not got AJAX enabled and it is able to create the numbered folder within the media folder it just seems to forget to put the document in there!!

7/3/2009 5:27:30 PMAvatardandrayneLocation: Edinburghposts: 738Karma: 1246
Comment with ID: 8543

What kind of document is it?  If it's .docx and not .doc you may need to add the mime type to your server? (I know, I'm clutching at straws here!)

7/7/2009 4:35:12 PMAvatartrfletchLocation: Rochester, UKposts: 308Karma: 251
Comment with ID: 8853

I have tried it with a number of different documents including just a txt document but the file doesn't even get placed in the folder structure so surely MIME types on the server would be irrelevant?

10/15/2009 4:53:12 PMAvatarArnold VisserLocation: Groenestraat 294 Nijmegen, Netherlandsposts: 47Karma: 44
Comment with ID: 16880

I've got the exact same problem. Folder is created, but file isn't placed in it...

Very strange, tried various persmissions and settings like maxrequestlenght.

More strange: if I upload an image, the _thumb.jpg file is generated and placed in the folder, but the original file is not...

Pages:

Please login or Sign up To post replies