Thread tagged as: Problem

Unable to upload image to bucket

I have installed Runway and have a template:

<img src="<perch:content type="image" id="image" label="Image" width="1920" height="620" crop="true" bucket="banners" />" alt="<perch:content type="text" id="heading" label="Heading" title="true" />">

But dragging images or selecting them individually does not upload them, the asset tray remains empty.

It works as expected with default bucket.

I have not configured buckets in config > buckets.php

Perch Runway is up to date PHP 5.6.28 is up to date MySQL 5.6.34 is up to date Image processing available Summary information

Perch Runway: 3.0.10, PHP: 5.6.28, MySQL: mysqlnd 5.0.11-dev - 20120503 - $Id: 76b08b24596e12d4553bd41fc93cccd5bac2fe7a $, with PDO
Server OS: Darwin, cgi-fcgi
Installed apps: content (3.0.10), assets (3.0.10), categories (3.0.10)
App runtimes: <?php $apps_list = [ ];
PERCH_PATH: /Users/simonclay/Dropbox/Clients/Lighthouse/Lighthouse Website/perch
PERCH_CORE: /Users/simonclay/Dropbox/Clients/Lighthouse/Lighthouse Website/perch/core
PERCH_RESFILEPATH: /Users/simonclay/Dropbox/Clients/Lighthouse/Lighthouse Website/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/simonclay/Dropbox/Clients/Lighthouse/Lighthouse Website
HTTP_HOST: lighthouse:8888
Simon Clay

Simon Clay 125 points

  • 11 months ago
Drew McLellan

Drew McLellan 2591 points
Perch Support

I have not configured buckets in config > buckets.php

Give that a try, see if it helps.

I added the following to perch/config/buckets.php but it has not resolved the issue.

    return [
        'images' => [
            'type'      => 'file',
            'web_path'  => '/perch/resources/banners',
            'file_path' => '/Users/simonclay/Dropbox/Clients/Lighthouse/Lighthouse Website/perch/resources/banners',

I have found a way to register a new bucket...

Perhaps there is a bug in the assets tray?

The only way I can register a new bucket is to bypass the assets tray and drag the new photo directly to the image thumbnail, demo here:

Perch 3 Buckets

I have the exact same issue, not being able to upload images into new buckets.

Altogether now... "There's a hole in my buckets..."

Drew McLellan

Drew McLellan 2591 points
Perch Support

You've defined a bucket called images but you're trying to upload into a bucket called new_bucket

No, this is further down the line in testing Drew.

I'm finding that Basic bucket integration isn't working for me, with or without further buckets.php configuration.

Drew McLellan

Drew McLellan 2591 points
Perch Support

All I can suggest is you try again in 3.0.11 when it's available.

You certainly can. :) Thank you.