We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

New Extension: nGen File Field for FieldFrame

Development and Programming

BWC Scott's avatar
BWC Scott
5 posts
16 years ago
BWC Scott's avatar BWC Scott

Any reason why this wouldn’t work, when the normal EE file upload works without errors?

Specifically, I am getting an error like “There was a problem uploading ‘filename.jpg’.” every time. Permissions are all set correctly.

Incidentally, this also occurs with Mark Huot’s File extension. Same error (very general in nature).

I have a feeling this might be related to being on a Windows/IIS host, but the regular EE file upload feature works just fine.

Any ideas?

       
Fred Boyle's avatar
Fred Boyle
73 posts
16 years ago
Fred Boyle's avatar Fred Boyle

@Steve Hurst Could you PM me details on your environment (IIS/Apache, PHP version, EE version+build), also URL + login info if possible?

@Cem Meric thanks for sharing that quick fix.

@BWC Scott If both nGen File Field and Huot File fail then there’s a larger issue that seems related to your environment. If you can PM me URL + login info I can take a look when I have a moment.

       
Alex Kendrick's avatar
Alex Kendrick
203 posts
16 years ago
Alex Kendrick's avatar Alex Kendrick

Yes, this extension is fabulous!

I have a question regarding max image size settings in file upload preferences. I hope that other users will be able to confirm if this works for them or not.

I’m noticing that when I upload images they are not being sized according to the settings in my file upload preferences. It might just be me, but I’ve done several tests, and the images are staying at original size.

Does nGen File Field follow the max dimensions set in weblog file upload preferences?

Thanks again for the great extension.

       
Fred Boyle's avatar
Fred Boyle
73 posts
16 years ago
Fred Boyle's avatar Fred Boyle

@riley That is expected behavior at this time. nGen File Field only follows the type (img or anything) and file size settings. We use the imgsizer plugin to resize images. Also in normal use those settings wouldn’t resize the image but prevent an image that was larger from being uploaded at all (more info).

       
Alex Kendrick's avatar
Alex Kendrick
203 posts
16 years ago
Alex Kendrick's avatar Alex Kendrick

Ah, thanks Fred. That makes perfect sense.

I was getting confused with some of the settings on MH File, and forgetting how those EE max dimensions setting actually work.

I will make use of the imgsizer plugin. Thanks again.

       
International Polar Foundation's avatar
International Polar Foundation
14 posts
16 years ago
International Polar Foundation's avatar International Polar Foundation

Hello all,

I am trying to use nGen File Field in standalone mode (not in the FF matrix). Everything went fine on the install and files are uploaded as expected but there seem to be a CSS problem since, in my edit page, the picture is displayed in its original size and I do not see the suppress button (text instead of image replacement I think).

Is this a path problem ? Running on WAMP on localhost (sandbox install). I cannot figure out what happens here. I have a <link> element calling the CSS with an absolute path that looks correct compared to my local install.

<link rel="stylesheet" type="text/css" href="http://localhost/blog/system/extensions/filetypes/ngen_file_field/styles/ngen_file_field.css" charset="utf-8" />

ExpressionEngine Core 1.6.7 - Build: 20090320 Fieldframe v.1.0.5 nGen File Field 0.9

I have disabled other extensions to see if that was a conflict … no luck

Here is a screnshot of the edit page. Definitely looks like a css problem, but the css file is there … can anyone help ?

       
Fred Boyle's avatar
Fred Boyle
73 posts
16 years ago
Fred Boyle's avatar Fred Boyle

@Polar Foundation Looks like it’s unable to locate the CSS file. If you put in the URL for the CSS file, as you posted, in a browser does it find it?

       
International Polar Foundation's avatar
International Polar Foundation
14 posts
16 years ago
International Polar Foundation's avatar International Polar Foundation

Hello there,

Nope. Didn’t see it in browser. After a bit of fiddling, I disovered I was the culprit here, not the extensions. <blush class=”ultra”>Typo in FieldFrame URL settings</blush>. See the path above … it should read /extensions/fieldtypes/ and not /extensions/filetypes/ in the path. Sorry about that :red: and thanks for the extension ! Must be too tired …

Thank you for the quick reply and sorry again for bothering you

       
Clearpeak's avatar
Clearpeak
413 posts
16 years ago
Clearpeak's avatar Clearpeak

For some reason I can’t get the tag pair to output anything using FF matrix and ngen file. The single tag outputs the table array as expected but I get nothing from the tag pair. Can’t figure out what I’m doing wrong.

Any ideas?

{exp:weblog:entries weblog="fa" limit="1" author_id="CURRENT_USER" disable="categories|pagination|member_data|trackbacks"}
                <div class="consult">{title}, {fa-company}</div>
                <div class="secure-box">
                    <h2>Clients</h2>
                    <div class="company">
                        <h3>{fa-client-1}</h3>
                        <div class="company-box">

                            <ul>
                                                      {fa-client-1-docs}
                                <li><a href="http://{fa-client-1-file}">{fa-client-1-title}</a></li>
                             {/fa-client-1-docs}
                            </ul>
                        </div>
                    </div>
                </div>
{/exp:weblog:entries}

Attached is a screenshot of my field settings.

Thanks

       
Ryan M.'s avatar
Ryan M.
1,511 posts
16 years ago
Ryan M.'s avatar Ryan M.

Has anyone had a problem converting an old MH File field to this nGen version? I had a File custom field with about 14 entries. Everything in those is stored just like this: “filename.pdf”. I converted the field to nGen File, and we uploaded a file no problem, but the info is stored in an array, like this: “a:1:{s:9:"file_name";s:35:"IC_Whitepaper_OptimizeEdDesigns.pdf";}”

The problem is when we go to edit one of the entries that had a previously uploaded file…nGen file doesn’t know what to do with that field, and throws errors in the CP. Example:

Warning: getimagesize(/home/client/public_html/uploads/pdf/I) [function.getimagesize]: failed to open stream: No such file or directory in /home/client/public_html/system/extensions/fieldtypes/ngen_file_field/ft.ngen_file_field.php on line 183

Has anyone else run into this? Why is the nGen file stored as an array? How can I convert the previously uploaded entries?

       
GDmac - expocom's avatar
GDmac - expocom
350 posts
16 years ago
GDmac - expocom's avatar GDmac - expocom

@mdesign: i’m guessing nGen-file uses array because of that is how it is used by fieldframe

Depending on the amount of data, you could probably write a small conversion script and serialize the data. put the current filename in an array and serialize it.

$x = array( ‘filename’ => ‘the_filename.pdf’); echo serialize($x);

       
anthonys's avatar
anthonys
54 posts
16 years ago
anthonys's avatar anthonys

Will nGen work with SAEF? If not, are there any plans in the works to offer this functionality?

       
Fred Boyle's avatar
Fred Boyle
73 posts
16 years ago
Fred Boyle's avatar Fred Boyle

@fodney Looking at your template code and the screenshot you should replace {fa-client-1-file} with {client-1-file} and {fa-client-1-title} with {client-1-title} and that should fix it.

@Mdesign & @GDmac I’m working to resolve the array + MH File compatibility along with other enhancements. Keep an eye out I’m hoping to release an update by the end of next week.

@anthonys This is more of a FieldFrame question so this may need to be asked in that thread. However I don’t think FieldFrame is SAEF friendly so neither would the nGen File fieldtype.

       
GDmac - expocom's avatar
GDmac - expocom
350 posts
16 years ago
GDmac - expocom's avatar GDmac - expocom

Thanks Fred for the info. to add to mDesign’s request, i have aa FF-Matrix field where i would like to change the current filenames to an Ngen-upload button. (see attached image) However that would be a little more tricky array to array conversion.

@mDesign, Brandon posted a php-script to copy field-data to a gypsy field, which could be adapted to convert your data. i suggest, first testing it out on a dummy field. http://ellislab.com/forums/viewreply/505640/

@nGen Fred, are you also considering an option to be able to select previously uploaded images ?

       
Fred Boyle's avatar
Fred Boyle
73 posts
16 years ago
Fred Boyle's avatar Fred Boyle

@GDmac The field will no longer store things in an array so your conversion should be effortless. Also, yes I am considering the selection of previously uploaded images, not sure if it will be in the next release however. Stay tuned. 😊

       
First 4 5 6 7 8 Last

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.