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?
@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.
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.
@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).
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 ?
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
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
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?
@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);
@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.
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 ?
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.