Community & Support

Upload paths for image widget field

I created a content type to upload images. I created a new field and used the image widget. I then went to upload paths module and set the path for my new content type that I wanted to upload the images to.

Instead of putting them in the expected folder, they went to imagecache folder and were somehow resized -I set the max size, and uploaded images bigger than this expecting them to be resized, but the resized images were smaller than my preset in the content type. I don't have any presets configured.

I then found out that If I upload images using the content type default file field, the images go to the directory I set up for the content type in upload paths module.

The content type exists only to allow a user to upload or delete images to a specific location where another module expects them to be. I would like to be able to upload an image using my content type and have it resized to my dimensions if it is too large.

I read the post a few down - it didn't help. Thanks in advance hor any advice!

Comments

=-=

image widget = imagefield.module?

yes

Yes, I have installed imagefield.

=-=

I then went to upload paths module

upload paths.module? I'm not finding this module in the repo.

admin/settings/uploadpath

admin/settings/uploadpath You are then able to set the pattern for each node type. The module itself is called Upload path 6.x-1.0 Organize uploaded files according to admin-specified rules. Depends on: Upload (enabled), Token (enabled)

=-=

found it.

The issue at hand is the uploadpath.module is only for use with the upload.module. Per the readme.txt file of uploadpath;

This module allows an admin to configure sub-directories of the site files
directory to be used by the upload module.

Therefore the uploadpath.module won't work with fieldfield and imagefield. For imagefield and filefield investigate the filefieldpath.module.

I read that, bit I didn't get

I read that, bit I didn't get that meaning from it.

When you say "uploadpath.module won't work with fieldfield", do you mean the file attachements field in a content type? Most likely not, because it did work with that one. Regardless, it's not what I wanted, so I will take a look at the filefieldpath module. Thank you for pointing it out!

=-=

file attachments are provided by the core upload.module which is why uploadpath.module works in that situation where as it isn't working with filefields or imagefields.

_

bwill,

What VeryMisunderstood is saying is that the Upload path module only supports files uploaded via Drupals core Upload module, where you are using the ImageField module for your files so you need to use the FileField Paths module which supports FileField/ImageField module files, Drupal core upload files and many more.

Cheers,
Deciphered.