Leevi, you rock. That did it. It’s working like it should.
After spending all day wading through gigantor threads, trying out a few things, and finally deciding everything available was too complicated and I’d wait to see what 2.0 had to offer before letting users upload files, I stumbled upon this. Simple, elegant, to the point.
One quick question: I had to go into the SQL Manager and look at exp_weblog_fields to find the field_id. Is it anywhere in the “normal” part of the control panel?
Thanks a million, Nathan
Thanks for the great work man.. Without your modules, I wouldn’t be anywhere near as efficient (or inefficient, however you look at it.. Either way, it’s better than had I not had them). 😊 This is great.. I can’t believe it took so long for someone to push something out like this, but I’m glad you took a stab at it man!
Hey, Leevi–
cool functionality, though i’m hitting a speedbump; I can upload a file successfully to right directory, but the custom field entry in my weblog is now
https://ellislab.com/asset/images/ent-partner-work/foo_file.aif
with the curlybraces and all. is this expected behavior?
end goal is to able to {exp:extract_url} the filename for other users to download, but right now that plugin seems to gack on the curlybraces in my custom field.
Hey, Leevi– cool functionality, though i’m hitting a speedbump; I can upload a file successfully to right directory, but the custom field entry in my weblog is nowwith the curlybraces and all. is this expected behavior? end goal is to able to {exp:extract_url} the filename for other users to download, but right now that plugin seems to gack on the curlybraces in my custom field.https://ellislab.com/asset/images/ent-partner-work/foo_file.aif
The https://ellislab.com/asset/images/ent-partner-work/ is correct, EE automatically will parse that to display the correct folder.
When you output the custom field to a template does it display “http://www.example.com/upload_folder/filename.ext”? or does it show “https://ellislab.com/asset/images/ent-partner-work/filename.ext”?
have you also tried using extract url plus 2?
it shows “https://ellislab.com/asset/images/ent-partner-work/filename.ext”
{exp:ee_typography format=none} extracts the URL successfully (not sure why {exp:extract_url} failed, but there you go).
{exp:phpstringfun function="ltrim" par1="https://ellislab.com/asset/images/ent-partner-work/"} makes the field presentation-pretty.
big props to leevi for another useful hunk o’ code
Hey Levi,
I am currently using this extension as it is downloaded today.
Here is my form and I am getting “Your section entry must have a title.”
{if logged_out}
<h1>Become a Friend</h1>
{embed="friends/register_form"}
{/if}
{if logged_in}
<h1>Hi {screen_name}!</h1>
How goes it?
Would you like to <a href="/submit">submit a design</a>
<div id="saef-holder">
{exp:weblog:entry_form weblog="friend_submissions" return="/worked" status="pending" lg_saef_file_upload = "y" lg_saef_file_upload_dir_id = "1"}
<label>Name of project: <span class="required">*</span></label>
<input type="text" name="{title}" value="{title}" class="input" id="{title}" size="40" /><br >
<label>Project Package: </label>
<span class="instructions">Zip of project</span>
<input type="file" name="field_id_4" class="input" value=""/><p >
{custom_fields}
{if textinput}
<label>{field_label}: <span class="required">*</span></label>
<span class="instructions">{field_instructions} </span>
<input type="text" name="{field_name}" value="" class="input" id="{field_name}" size="40" /><br >
{/if}
{if textarea}
<label>{field_label}: <span class="required">*</span></label>
<span class="instructions">{field_instructions} </span>
<textarea name="{field_name}" id="{field_name}" rows="{rows}" cols="50">{field_data}</textarea>
{/if}
{/custom_fields}
<input type="submit" name="submit" value="Submit" />
{/exp:weblog:entry_form}
Can you tell me where I am going wrong?
Thanks -Lee
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.