file upload
Posted: 15 January 2008 09:41 AM   [ Ignore ]
Newbie
Rank
Total Posts:  17
Joined  2007-01-28

I already posted about this at EE’s forums but I am having trouble getting people to upload files with file upload. It says they are not authorized. I am getting mixed views over at the other form. So does the visitor need to be logged in when using the Freeform upload thing or can they upload without logging in?

Url in question is

http://www.roboticstrends.com/jobs/apply/systems_programmer/

I get this error:

The following errors were encountered

You are not authorized to perform this action

How do I fix this?

thanks!

Profile
 
 
Posted: 15 January 2008 11:04 AM   [ Ignore ]   [ # 1 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3272
Joined  2006-10-18

Freeform’s Upload feature respects the File Upload Preferences you have set:

CP Home › Admin › Website Administration › File Upload Preferences › Edit File Upload Preferences

However, there is no option for Guests....

You’ll probably need to disable “Process form data in secure mode”

CP Home › Admin › System Preferences › Security and Session Preferences

 Signature 
Profile
 
 
Posted: 17 January 2008 07:04 PM   [ Ignore ]   [ # 2 ]
Newbie
Rank
Total Posts:  17
Joined  2007-01-28

Hello again,

We are still having trouble with the upload, we have done everything we could think of, even what you said, no effect.

http://www.roboticstrends.com/jobs/apply/systems_programmer/

What’s weird is that upon hitting submit button it gets this error:

The following errors were encountered

* A problem was encountered while attempting to upload your file

But it does enter the other fields in the FreeForm entries, because i see it appear there after; just no file.

We have the correct paths in File Upload control panel; and the permissions are right too.

One error we also saw was this: “The uploaded file exceeds the maximum allowed size in your PHP configuration file”

I am pasting the code used here:

{assign_variable:jobs_weblog="jobs"}
{assign_variable
:jobs_template_group="jobs"}

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<
html xmlns="http://www.w3.org/1999/xhtml">
<
head>
<
title>Career Center | {site_name}</title>
<
meta name="keywords" content="robot, robotics, robonexus, robots,  robotics, robobusiness, mobile robots, robosapiens, ..." />
<
meta name="description" content="Robots and Robotics Technology News, Information and Analysis" />

{embed="includes/.head"}
</head>

<
body id="job_post">
<
div id="wrapper"><div id="wrapper-inner" class="clearfix">

{embed="includes/.header"}

<!-- End header -->
  
  <
div id="content">
  <
div id="content-main">
  <
div id="main-heading">
  <
a href="{path="home/index"}"><img src="/images/rtrends_logo_mini.gif" alt="Robotics Trends" width="89" height="27" /></a>
  <
div>
  <
h1>Career Center</h1></div>
  </
div>


<
div id="content-main-body">
<
p><img src="/images/get_job.jpg" alt="Find Work. Post A Job. Get Results." /></p>

<
div class="conference-entry">
{exp:weblog:entries weblog="{jobs_weblog}" orderby="date" sort="asc" limit="1" disable="trackbacks" show_future_entries="yes"}

{if no_results}
<p class="no-results-articles">You have not selected a listing to apply too. <a href="path={"jobs/index"}">Return to Job Listings</a></p>
{/if}

<table width="380">

  
<
tr><td valign="top"><div align="left">Location:</div></td><td><div align="left">{job_local}</div></td></tr>
<
tr><td valign="top"><div align="left">Duration:</div></td><td><div align="left">{duration}</div></td></tr>
<
tr><td valign="top"><div align="left">Salary:</div></td><td><div align="left">{salary}</div></td></tr>
<
tr><td valign="top"><div align="left">Date Posted:</div></td><td><div align="left">{posted}</div></td></tr>
</
table>

{/exp:weblog:entries}
</div>
<
table width="490">
  <
tr>
  
{exp:freeform:form form_name="job_apply_form" template="job_apply" return="jobs/apply_thank" notify="bill@lectric.com"
required="jobtitle|name|city|state|postalcode" file_upload="Career Center Resumes" send_attachment="yes"}

<td valign="top" cellspacing="20">
<
strong><p>Applicant Information</p></strong>
<
label for="jobtitle">Job Title* (50 char. max.)</label><input type="text" name="jobtitle" id="jobtitle" class="fwidth" />
<
label for="name">Name*</label><input type="text" name="name" id="name" class="fwidth" />
<
label for="street1">Address</label><input type="text" name="street1" id="street1" class="fwidth" />
<
label for="street2">Address 2</label><input type="text" name="street2" id="street2" class="fwidth" />
<
label for="city">City*</label><input type="text" name="city" id="city" class="fwidth" />
<
label for="state">State*</label><input type="text" name="state" id="state" class="fwidth" />
<
label for="postalcode">Postal Code*</label><input type="text" name="postalcode" id="postalcode" class="fwidth" />

</
td>
<
td>
<
strong><p>Resumé / Cover Letter</p></strong>
<
label for="file1" style="float: none; width: 340px; text-align: left;">Attach Word Doc or PDF:</label> <input type="file" name="file1" id="file1" size="40" style="width: 300px;">
<
label for="letter">Cover Letter </label><textarea name="letter" cols="65" rows="3"></textarea>
<
label for="experience">Experience</label><textarea name="experience" cols="65" rows="3"></textarea>
<
label for="skills">Skills</label><textarea name="skills" cols="65" rows="3"></textarea>
<
label for="education">Education</label><textarea name="education" cols="65" rows="3"></textarea>

</
td>
   </
tr>
</
table>  

<
p style="text-align: left;">
{if captcha}
For security purposes, please enter the word you see in the image below:<br /><br />
{captcha}<br /><br />
<
input type="text" name="captcha" value="" maxlength="20" />
{/if}
</p>

<
p><input type="submit" name="submit" value="Submit" /></p>

{/exp:freeform:form}

  
</div>
  </
div>
   <!--
End content-main -->
   
   <
div id="sidebar">
   
{embed="includes/.sidebar"}
  
</div>

   <!--
End sidebar -->
   
  </
div>
  <!--
End content -->
  
{embed="includes/.footer"}
  
  
</div></div>

</
body>
</
html>

We would appreciate any help. What’s even more weird is that are using the exact same code on another site at http://www.channelproonline.com/resources/whitepapers_submission/

Thanks!

Profile
 
 
Posted: 18 January 2008 07:21 AM   [ Ignore ]   [ # 3 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3272
Joined  2006-10-18

Can you try two things:

1) Does this work when you’re logged in as Administrator and/or Member?
2) Go into the Admin CP Publish page and try to upload a file into that directory… does it work?

Thank you! smile

 Signature 
Profile
 
 
Posted: 18 January 2008 07:56 AM   [ Ignore ]   [ # 4 ]
Newbie
Rank
Total Posts:  17
Joined  2007-01-28

Hello and thanks for your reply,

For #1, same problem with: “The following errors were encountered

* A problem was encountered while attempting to upload your file

For #2, it spit back the same error: “A problem was encountered while attempting to upload your file”

Kevin

Profile
 
 
Posted: 18 January 2008 08:04 AM   [ Ignore ]   [ # 5 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3272
Joined  2006-10-18

Hehehe, any chance you’re using EngineHosting? wink

If so, (which I know you are from the Whois) LOL you’re probably having the EXACT same issue I had.

Contact them:

Tell them the situation (in regards to the File Upload), and let them know that it’s possibly an issue with the “uploadtemp” directory getting deleted somehow… they’ll understand LOL

 Signature 
Profile
 
 
Posted: 18 January 2008 08:16 AM   [ Ignore ]   [ # 6 ]
Newbie
Rank
Total Posts:  17
Joined  2007-01-28

hey,

Yep, we are using Engine Hosting smile thanks! Ill tell them.

Ill get back to you if I find out anything.

THnaks!

Kevin

Profile
 
 
Posted: 22 January 2008 10:39 PM   [ Ignore ]   [ # 7 ]
Newbie
Rank
Total Posts:  17
Joined  2007-01-28

Hello again,

And thanks, it was the problem with Engine Hosting.

We have one more problem we are trying to figure out.

How do you with Freeform pass content from page to page with Freeform? Basically, the job listed like at http://www.roboticstrends.com/jobs/apply/systems_programmer needs to be able to send an email to the person who posted the job, not just the Robotic Trends company. Since it has to be a variable we are not sure how to do this. It has to be a variable that gets pulled into the notify part in the Freeform expression.

THanks!

Profile
 
 
Posted: 23 January 2008 06:54 AM   [ Ignore ]   [ # 8 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  701
Joined  2004-03-30

There’s not really a way to do this built into Freeform.

mk

 Signature 

Mitchell Kimbrough

Profile
 
 
Posted: 23 January 2008 07:19 AM   [ Ignore ]   [ # 9 ]
Newbie
Rank
Total Posts:  17
Joined  2007-01-28

Thanks for the help,

So basically it can’t be done by default in FF but you need a programmer to come with something with PHP to make it work? Maybe a plugin?

You know if it can be done with regular old Expression Engine form tag?

Kevin

Profile
 
 
Posted: 24 January 2008 03:34 PM   [ Ignore ]   [ # 10 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3272
Joined  2006-10-18

You potentially could pass content from page to page with EE… but you’d need to use a combination of the EE Weblog Entry SAEF Form, the SAEF Redirect Extension, and the amazingly amazing Form Helper Plugin.

Essentially, what you would do is allow that member group to post entries… have the person visit the SAEF (with the SAEF Redirect Extension installed and setup) to post the Application/whatever.
The SAEF Redirect extension allows you to assign the Return Parameter of the SAEF to load the future Entry ID.
The Redirected template would basically be set up like you would with Permalink/Comments page, but load that particular data.
The Form Helper plugin basically comes in handy if you wish to carry on updating the Application/form/whatever (should you choose to break it down step by step).
It allows the user to then edit the content on the Front-End (or fill out the rest of the fields in this case).

It still leaves out the original problem of an email being sent, but if a page showing the member their submitted data is good enough for you… then this would work.
You could otherwise just create a final template that loads ALL of the data, and include the Native EE Email a Friend/Contact Us form as hidden fields with the data populated in it (as well as email address, etc)… then use that Submit as a fake “Final Submit” of the data, which would then generate the email.

Basically the last page I explained would only be a hidden contact form populated with the Weblog Entry Data, with ONLY the Submit button showing.
But it would be disguised as a “Final Review / Submit” page LOL

I hope that makes sense… I also think I’m the master of dirty work-arounds, haha LOL

 Signature 
Profile