Forum

Thread tagged as: Problem, Error, Field-Types

image uploader not uploading into custom buckets from category template

Hi I'm having difficulties getting the uploader to add an asset into a custom bucket from a category template. It uploads OK if I omit the 'bucket' attribute and therefore goes to the 'default' bucket. It just won't upload to either a new or existing custom bucket.

Perch Runway: 3.0.10, PHP: 5.5.38, MySQL: mysqlnd 5.0.11-dev - 20120503 - $Id: 15d5c781cfcad91193dceae1d2cdd127674ddb3e $, with PDO
Server OS: Darwin, cgi-fcgi
Installed apps: content (3.0.10), assets (3.0.10), categories (3.0.10), perch_blog (5.6.1), perch_forms (1.9.1), perch_backup (1.2)
App runtimes: <?php $apps_list = array( 'content', 'categories', 'perch_forms', 'perch_blog', );
PERCH_LOGINPATH: /perch
PERCH_PATH: /Users/xx/Documents/MAMP-SERVERS/xx/perch
PERCH_CORE: /Users/xx/Documents/MAMP-SERVERS/xx/perch/core
PERCH_RESFILEPATH: /Users/xx/Documents/MAMP-SERVERS/xx/perch/resources
Image manipulation: GD
PHP limits: Max upload 32M, Max POST 32M, Memory: 128M, Total max file upload: 32M
F1: 3b606135b33e6a102526838f4152a807
Resource folder writeable: Yes
SCRIPT_NAME: /perch/core/settings/diagnostics/index.php
REQUEST_URI: /perch/core/settings/diagnostics/
DOCUMENT_ROOT: /Users/xx/Documents/MAMP-SERVERS/xx.local
HTTP_HOST: xx.local

The line from my category template

    <!-- map pin -->
    <perch:category type="image" id="map_pin" label="Map Pin Graphic" help="Custom Pin Graphic for Google Map Position" bucket="Pin" width="20" height="32"  crop="false" />
Graham Shedden

Graham Shedden 0 points

  • 3 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Is the bucket Pin defined anywhere?

The only place it's defined in code is as above. It's an addition to an existing site. When I look inside 'perch/resource' folder there is a 'Pin' folder which is empty.

Drew McLellan

Drew McLellan 2638 points
Perch Support

Have you tried adding it to your buckets.php file?

Added to bucket.php but still not working.

I think this is the same issue:

Simon Clay

I checked out the same thing in the latest standard Perch and all is well. I tried another website and runway install (same staging server) and issue was there. I tried running in runway 3.0.9 and issue still there.

Drew McLellan

Drew McLellan 2638 points
Perch Support

Which version was this working in?

perch 3.0.10

Perch: 3.0.10, PHP: 5.4.45, MySQL: mysqlnd 5.0.10 - 20111026 - $Id: c85105d7c6f7d70d609bb4c000257868a40840ab $, with PDO
Server OS: Darwin, cgi-fcgi
Installed apps: content (3.0.10), assets (3.0.10), categories (3.0.10), perch_blog (5.6.1)
App runtimes: <?php $apps_list = [ 'perch_blog' ];
PERCH_LOGINPATH: /perch
PERCH_PATH: /Users/XXX/Documents/MAMP-SERVERS/XXX.local/perch
PERCH_CORE: /Users/XXX/Documents/MAMP-SERVERS/XXX.local/perch/core
PERCH_RESFILEPATH: /Users/XXX/Documents/MAMP-SERVERS/XXX.local/perch/resources
Image manipulation: GD
PHP limits: Max upload 32M, Max POST 32M, Memory: 128M, Total max file upload: 32M
F1: 3b606135b33e6a102526838f4152a807
Resource folder writeable: Yes
SCRIPT_NAME: /perch/core/settings/diagnostics/index.php
REQUEST_URI: /perch/core/settings/diagnostics/
DOCUMENT_ROOT: /Users/XXX/Documents/MAMP-SERVERS/XXX.local
HTTP_HOST: XXX.local
Drew McLellan

Drew McLellan 2638 points
Perch Support

I thought you said it wasn't working in 3.0.10 or 3.0.9. Is that not accurate? If it's working in 3.0.10 then you should use that, as it's the latest version.

Works in Perch but not Runway.

Drew McLellan

Drew McLellan 2638 points
Perch Support

Ok, we'll look into it.

Fixed after updating to Perch Runway: 3.0.11