Hi,

I had a problem with this module not taking into account the filepath I wanted for the unzipped files. All the files where going to the default filepath.

I did modify the line 67 from
$dest = filefield_widget_file_path($field_element);
to
$dest = filefield_widget_file_path($field);

And now it works...

CommentFileSizeAuthor
#10 imagefield_zip-685712-10.patch1.04 KBmikeytown2

Comments

agrelos’s picture

And works for me too!

Thanks!

mikeytown2’s picture

Status: Active » Needs review
mikeytown2’s picture

Status: Needs review » Fixed

committed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

grayb’s picture

I'm having this same issue now, just as described above. Uploading the images via the regular Imagefield upload form places the images in the specified path for that field. Uploading a zip file via the Imagefield_zip form results in the node being correct, but all the image files get dumped into sites/default/files

 Package          Name                           Type    Status         Version
 Administration   Administration menu            Module  Enabled        6.x-1.5
                  (admin_menu)
 CCK              Content (content)              Module  Enabled        6.x-2.7
 CCK              Content Copy (content_copy)    Module  Not installed  6.x-2.7
 CCK              Content Permissions            Module  Not installed  6.x-2.7
                  (content_permissions)
 CCK              Fieldgroup (fieldgroup)        Module  Enabled        6.x-2.7
 CCK              FileField (filefield)          Module  Enabled        6.x-3.7
 CCK              FileField Meta                 Module  Not installed  6.x-3.7
                  (filefield_meta)
 CCK              Image FUpload (CCK)            Module  Disabled       6.x-3.0
                  (image_fupload_imagefield)                            -rc2
 CCK              ImageField (imagefield)        Module  Enabled        6.x-3.7
 CCK              ImageField Zip Extract         Module  Enabled        6.x-1.0
                  (imagefield_zip)                                      -beta1
 CCK              Node Reference                 Module  Enabled        6.x-2.7
                  (nodereference)
 CCK              Node Reference URL Widget      Module  Enabled        6.x-1.6
                  (nodereference_url)
 CCK              Number (number)                Module  Enabled        6.x-2.7
 CCK              Option Widgets                 Module  Enabled        6.x-2.7
                  (optionwidgets)
 CCK              Text (text)                    Module  Enabled        6.x-2.7
 CCK              User Reference                 Module  Enabled        6.x-2.7
                  (userreference)
 Context          Context (context)              Module  Enabled        6.x-2.0
 Context          Context Contrib                Module  Enabled        6.x-2.0
                  (context_contrib)
 Context          Context UI (context_ui)        Module  Enabled        6.x-2.0
 Core - optional  Aggregator (aggregator)        Module  Not installed  6.17
 Core - optional  Blog (blog)                    Module  Not installed  6.17
 Core - optional  Blog API (blogapi)             Module  Not installed  6.17
 Core - optional  Book (book)                    Module  Not installed  6.17
 Core - optional  Color (color)                  Module  Enabled        6.17
 Core - optional  Comment (comment)              Module  Disabled       6.17
 Core - optional  Contact (contact)              Module  Not installed  6.17
 Core - optional  Content translation            Module  Not installed  6.17
                  (translation)
 Core - optional  Database logging (dblog)       Module  Enabled        6.17
 Core - optional  Forum (forum)                  Module  Not installed  6.17
 Core - optional  Help (help)                    Module  Enabled        6.17
 Core - optional  Locale (locale)                Module  Not installed  6.17
 Core - optional  Menu (menu)                    Module  Enabled        6.17
 Core - optional  OpenID (openid)                Module  Not installed  6.17
 Core - optional  Path (path)                    Module  Enabled        6.17
 Core - optional  PHP filter (php)               Module  Not installed  6.17
 Core - optional  Ping (ping)                    Module  Not installed  6.17
 Core - optional  Poll (poll)                    Module  Not installed  6.17
 Core - optional  Profile (profile)              Module  Not installed  6.17
 Core - optional  Search (search)                Module  Enabled        6.17
 Core - optional  Statistics (statistics)        Module  Not installed  6.17
 Core - optional  Syslog (syslog)                Module  Not installed  6.17
 Core - optional  Taxonomy (taxonomy)            Module  Enabled        6.17
 Core - optional  Throttle (throttle)            Module  Not installed  6.17
 Core - optional  Tracker (tracker)              Module  Not installed  6.17
 Core - optional  Trigger (trigger)              Module  Not installed  6.17
 Core - optional  Update status (update)         Module  Enabled        6.17
 Core - optional  Upload (upload)                Module  Not installed  6.17
 Core - required  Block (block)                  Module  Enabled        6.17
 Core - required  Filter (filter)                Module  Enabled        6.17
 Core - required  Node (node)                    Module  Enabled        6.17
 Core - required  System (system)                Module  Enabled        6.17
 Core - required  User (user)                    Module  Enabled        6.17
 Development      Demonstration site (demo)      Module  Enabled        6.x-1.4
 Development      Demonstration site reset       Module  Not installed  6.x-1.4
                  (demo_reset)
 Development      Devel (devel)                  Module  Enabled        6.x-1.2
                                                                        0
 Development      Devel generate                 Module  Not installed  6.x-1.2
                  (devel_generate)                                      0
 Development      Devel node access              Module  Not installed  6.x-1.2
                  (devel_node_access)                                   0
 Development      Performance Logging            Module  Not installed  6.x-1.2
                  (performance)                                         0
 Development      Theme developer                Module  Not installed  6.x-1.x
                  (devel_themer)                                        -dev
 Features         Features (features)            Module  Enabled        6.x-1.0
                                                                        -beta8
 Image            Image FUpload (image)          Module  Not installed  6.x-3.0
                  (image_fupload_image)                                 -rc2
 ImageCache       ImageAPI (imageapi)            Module  Enabled        6.x-1.8
 ImageCache       ImageAPI GD2 (imageapi_gd)     Module  Disabled       6.x-1.8
 ImageCache       ImageAPI ImageMagick           Module  Enabled        6.x-1.8
                  (imageapi_imagemagick)
 ImageCache       ImageCache (imagecache)        Module  Enabled        6.x-2.0
                                                                        -beta10
 ImageCache       ImageCache UI (imagecache_ui)  Module  Enabled        6.x-2.0
                                                                        -beta10
 Other            Advanced help (advanced_help)  Module  Enabled        6.x-1.2
 Other            Advanced help example          Module  Not installed  6.x-1.2
                  (help_example)
 Other            Automatic Nodetitles           Module  Not installed  6.x-1.2
                  (auto_nodetitle)
 Other            Image FUpload (image_fupload)  Module  Disabled       6.x-3.0
                                                                        -rc2
 Other            Pathauto (pathauto)            Module  Enabled        6.x-1.3
 Other            Poormanscron (poormanscron)    Module  Enabled        6.x-2.2
 Other            Token (token)                  Module  Enabled        6.x-1.1
                                                                        3
 Other            Token actions (token_actions)  Module  Enabled        6.x-1.1
                                                                        3
 Other            TokenSTARTER (tokenSTARTER)    Module  Enabled        6.x-1.1
                                                                        3
 Testing          Features Tests                 Module  Not installed  6.x-1.0
                  (features_test)                                       -beta8
 Views            Views (views)                  Module  Enabled        6.x-2.1
                                                                        1
 Views            Views attach (views_attach)    Module  Enabled        6.x-2.2
 Views            Views exporter (views_export)  Module  Not installed  6.x-2.1
                                                                        1
 Views            Views UI (views_ui)            Module  Enabled        6.x-2.1
                                                                        1
 Other            Bluemarine (bluemarine)        Theme   Disabled       6.17
 Other            Chameleon (chameleon)          Theme   Disabled       6.17
 Other            DA (da)                        Theme   Disabled
 Other            Garland (garland)              Theme   Enabled        6.17
 Other            Marvin (marvin)                Theme   Disabled       6.17
 Other            Minnelli (minnelli)            Theme   Disabled       6.17
 Other            Omega (omega)                  Theme   Disabled       6.x-1.0
                                                                        -beta10
 Other            Pushbutton (pushbutton)        Theme   Disabled       6.17
 Other            Zen (zen)                      Theme   Disabled       6.x-2.0
grayb’s picture

Status: Closed (fixed) » Active

Sorry, forgot to change status

grayb’s picture

Just wanted to say that I switched to the 1.x-dev version and I'm still seeing the same thing.

jnettik’s picture

I still have the problem with the filepath not working. I checked $dest and it looks right to me. The module is not using my specified file path.

Edit: With more playing around I've discovered it does work, however if the folder is not created first on the server, then it does not create the needed folder to place the images into.

mikeytown2’s picture

Shouldn't filefield take care of folder creation?

mikeytown2’s picture

Version: 6.x-1.0-beta1 » 6.x-1.x-dev
Status: Active » Fixed
StatusFileSize
new1.04 KB

Issue arises if your not using php 5 from what I can tell. This patch has been committed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.