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.

3
  • 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/… Commented Aug 6, 2015 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
    Commented Aug 7, 2015 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 [email protected] with more info. Commented Aug 7, 2015 at 20:56

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.