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

File

Development and Programming

Mark Huot's avatar
Mark Huot
587 posts
17 years ago
Mark Huot's avatar Mark Huot

@timkelty - You’re correct, the thumb is driven by the max width and height. I’m looking into your white screen issues and should have some updates out shortly after the new year. I think I’m going to be switching over to using phpThumb on the backend and trying to mask it’s url’s as much as possible.

       
timkelty's avatar
timkelty
177 posts
17 years ago
timkelty's avatar timkelty

Mark, Thanks, I appreciate it.

This weekend I installed a brand new copy of EE, the first thing I did was install ‘File’ to see if the image resizing worked…I still had the same blank screen on publishing issue, with no thumb generated. (normal EE resizing via ImageMagick was working fine)

Can’t wait till I can get this one working in its entirety!

One other question: If thumbnail size is controlled with max/height width, I’m assuming the original max height/width behavior gets overridden? Like if I set my thumbnail size to 50x50, is it going to let me upload anything larger than that?

       
james Brown's avatar
james Brown
492 posts
17 years ago
james Brown's avatar james Brown

Mark: If the max width and height setting in the uploads screen are for the thumbnail, how do you set the actual image dimensions? In the 2.x versions there was a place to set the max width/height and the thumb width/height (see attached screenshot). I’m trying to figure out how I set up 3.x to achieve the same kind of thing. The idea is that I want to control the size of the full size image and the dimensions of the thumbnail.

       
Dane Thomas's avatar
Dane Thomas
139 posts
17 years ago
Dane Thomas's avatar Dane Thomas

I’m working on a project, where for the first time, I’m using the built in category image facility within EE.

As has been mentioned here http://ellislab.com/forums/viewthread/43349/ (and is somewhat related) I was wondering if there was a chance that file could be developed to replace the built in ‘Category Image’ field and replace it with a ‘File’ field.

I even tried to add a custom category field but with the File extension installed File isn’t an option in the drop down - it seems it only works (as I had expected) on the regular custom filed section.

The current category image field is extremely non user friendly and pretty much makes it impossible for a non technical person to add a new category and supply a nice image to match.

       
Adam Khan's avatar
Adam Khan
315 posts
17 years ago
Adam Khan's avatar Adam Khan

Does this extension play well with the Stand-alone entry form?

       
Matt Weinberg's avatar
Matt Weinberg
489 posts
17 years ago
Matt Weinberg's avatar Matt Weinberg

Not sure if this is mentioned already, but on my EE 1.6.1 install, I’m seeing weird behavior with File version 3.1. After I temporarily disable it (to add a new upload location), and then enable it again, the “allow multiple uploads” and “show thumbnails” options get switched from yes to no, and “Resize” gets switched to Auto.

Also, when I upload a group of 7 files, they are all numbered correctly except the last, which is numbered 1. If I then upload another file, it gets a “count” value of “1”, even though the “total number” count is correct, and the previously last file gets its “count” corrected.

Thanks for all the hard and great work, Mark!

       
Ryan M.'s avatar
Ryan M.
1,511 posts
17 years ago
Ryan M.'s avatar Ryan M.
I’m seeing weird behavior with File version 3.1. After I temporarily disable it (to add a new upload location), and then enable it again, the “allow multiple uploads” and “show thumbnails” options get switched from yes to no, and “Resize” gets switched to Auto.

I had this happen too - thumbs and multiple got flipped back to ‘off’.

One other thing I noticed is that I can’t use the File field as a single tag and then with opening/closing tags in the same weblog entries tag. I was trying to use File as a mini gallery of pictures and I needed to call the first picture like this: {picfield} but the following pics I was outputting as thumbnails (using Lumis’ Imagesizer plugin), so I needed to call them like: {picfield}{file_url}{/picfield}. Things were getting all confused - I think because the closing tag didn’t know which opening tag was the real one, so I was seeing some double looping, etc.! So, wrapping each area in its own entries tag worked. Although using an embed might work as well.

       
jeremydouglas's avatar
jeremydouglas
292 posts
17 years ago
jeremydouglas's avatar jeremydouglas

I’m having trouble taking exporting the table for this extension and importing it to the live version. Both are running mysql 5.0.41.

This is what EE exports:

DROP TABLE IF EXISTS exp_mh_file;

CREATE TABLE `exp_mh_file` (
  `id` int(11) NOT NULL auto_increment,
  `upload_id` int(11) NOT NULL,
  `key` varchar(255) NOT NULL,
  `value` varchar(255) NOT NULL,
  PRIMARY KEY  (`id`),
  UNIQUE KEY `UPLOAD_KEY` (`upload_id`,`key`)
) ENGINE=MyISAM AUTO_INCREMENT=8 DEFAULT CHARSET=utf8;

INSERT INTO exp_mh_file (id, upload_id, key, value) VALUES ('1', '2', 'allow_multiple', 'no');
INSERT INTO exp_mh_file (id, upload_id, key, value) VALUES ('2', '2', 'show_thumbnails', 'yes');
INSERT INTO exp_mh_file (id, upload_id, key, value) VALUES ('3', '2', 'clean_filenames', 'yes');
INSERT INTO exp_mh_file (id, upload_id, key, value) VALUES ('4', '2', 'rewrite_filenames', 'yes');
INSERT INTO exp_mh_file (id, upload_id, key, value) VALUES ('5', '2', 'resize_images', 'auto');
INSERT INTO exp_mh_file (id, upload_id, key, value) VALUES ('6', '2', 'keep_originals', 'yes');
INSERT INTO exp_mh_file (id, upload_id, key, value) VALUES ('7', '2', 'delete_from_server', 'yes');

This is the error I get:

SQL query:

INSERT INTO exp_mh_file( id, upload_id, 
KEY , value ) 
VALUES (
'1',  '2',  'allow_multiple',  'no'
);


MySQL said: 

#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'key, value) VALUES ('1', '2', 'allow_multiple', 'no')' at line 1

I’m using version 3.1 of the extension

Can anyone help?

       
Matt Weinberg's avatar
Matt Weinberg
489 posts
17 years ago
Matt Weinberg's avatar Matt Weinberg

Quick Question: how are people handling giving names to images? I know we can display the file name, but it includes the file extension and isn’t always the label I’d like.

Is there any way to let people set a label for the image when they upload it?

Thanks, Matt

       
jeremydouglas's avatar
jeremydouglas
292 posts
17 years ago
jeremydouglas's avatar jeremydouglas

slapshotw,

Sometimes I use the title from the weblog entry, or you could set another custom field. Though this isn’t going to work with multiple images of course.

       
Matt Weinberg's avatar
Matt Weinberg
489 posts
17 years ago
Matt Weinberg's avatar Matt Weinberg

Yep, my problem is the multiple images. My client uploads multiple images with each entry, and a different amount each time. I’d like to be able to give them labels that aren’t just the filename.

Maybe I will do it as a textarea with a few lines, and use PHP to explode the string by linebreaks. I could tell my client to enter each label on a new line and then iterate through the exploded array with each image. Does anybody have a different/better solution to this?

Edit: I got the PHP method working. It’s not perfect but it works well enough!

       
rick.prince's avatar
rick.prince
111 posts
17 years ago
rick.prince's avatar rick.prince

Is there a way to change the order of the files? I’m using File as an image gallery and have the first image as the album cover. It would be great if I could rearrange the order in which I uploaded the images.

p.s. HaPPPY NEW YEArs!

       
jeremydouglas's avatar
jeremydouglas
292 posts
17 years ago
jeremydouglas's avatar jeremydouglas
Yep, my problem is the multiple images. My client uploads multiple images with each entry, and a different amount each time. I’d like to be able to give them labels that aren’t just the filename. Maybe I will do it as a textarea with a few lines, and use PHP to explode the string by linebreaks. I could tell my client to enter each label on a new line and then iterate through the exploded array with each image. Does anybody have a different/better solution to this? Edit: I got the PHP method working. It’s not perfect but it works well enough!

I just got hit with this same scenario, I may actually try your solution as I can’t think of a better one. Unless maybe a different extension.

       
Matt Weinberg's avatar
Matt Weinberg
489 posts
17 years ago
Matt Weinberg's avatar Matt Weinberg
I just got hit with this same scenario, I may actually try your solution as I can’t think of a better one. Unless maybe a different extension.

Here’s the code I used (php has to be on output). {pictureNames} is my custom field with the names of the images each on a different line:

<?php
    $pictureNames = "{pictureNames}"; 
    $pictureNamesArray = explode("\n",$pictureNames);
    $pictureCounter = 0;
?>

    {pictures}
        <a href="http://{file_url}">{file_thumb_url}</a>

        <?php echo "$pictureNamesArray[$pictureCounter]"; $pictureCounter++; ?>
    {/pictures}
       
jeremydouglas's avatar
jeremydouglas
292 posts
17 years ago
jeremydouglas's avatar jeremydouglas

sweet, slapshotw, much abliged

       
First 22 23 24 25 26 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.