0

I've put together an entry form with a front end file upload, following the excellent answer here. It works perfectly, for logged in users only.

I'm wondering is this method is at all workable for guests?

When I attempt a file upload via the front end form when not logged in, I get:

Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost/login

The form submission works with text data, but the file field is not populated.

I'm looking to accept resume pdfs on a public job application form, hence the need for this to work for non-authenticated users.

  • 1
    Might be worth posting your form code. Make sure the <form> tag has enctype="multipart/form-data" as a parameter. Here's a related question: craftcms.stackexchange.com/questions/1518/… – Ben Parizek Aug 6 '15 at 19:56
  • Thanks - I did have that enctype in my form. I'm going to revise my question after doing a little more testing. I should have mentioned, I'm also using the Sprout Forms plugin for my form. – Mat Aug 7 '15 at 18:11
  • We do have Sprout Forms working in a similar use case to what you describe (guest users submitting resume PDFs). If you could update the question with a more comprehensive code example and any info on redirects or where the /login path seems to be coming from that might help. Or drop us a note at sprout@barrelstrengthdesign.com with more info. – Ben Parizek Aug 7 '15 at 20:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.