Forum
I'm have trouble uploading my images.
Can someone help me with my code. My images don't want to upload for some reason.
This is for a image gallery that's already live a website and I'm trying to migrate perch into it.
Here's the original code.
<!-- Start WOWSlider.com BODY section -->
<div id="wowslider-container1">
<div class="ws_images">
<ul>
<li><a href="https://business.lccmadison.org/events/details/2014-latin-preneur-awards-annual-gala-7" target="_self"><img src="data1/images/2014galasavethedate.jpg" alt="2014" title="2014" id="wows1_0"/></a>ANNUAL GALA</li>
<li><a href="https://business.lccmadison.org/events/details/2014-latin-preneur-awards-annual-gala-7" target="_self"><img src="data1/images/2014annualgala1.jpg" alt="2014" title="2014" id="wows1_1"/></a>ANNUAL GALA</li>
<li><a href="https://business.lccmadison.org/events/details/2014-latin-preneur-awards-annual-gala-7" target="_self"><img src="data1/images/2014annualgala.jpg" alt="2014" title="2014" id="wows1_2"/></a>ANNUAL GALA</li>
<li><a href="https://business.lccmadison.org/events/details/2014-latin-preneur-awards-annual-gala-7" target="_self"><img src="data1/images/ribboncutting.jpg" alt="Ribbon-Cutting" title="Ribbon-Cutting" id="wows1_3"/></a></li>
</ul>
</div>
<div class="ws_bullets">
<div>
<a href="#" title="2014">1</a>
<a href="#" title="2014">2</a>
<a href="#" title="2014">3</a>
<a href="#" title="Ribbon-Cutting">4</a>
</div>
</div>
<!-- Generated by WOWSlider.com v5.5 -->
<div class="ws_shadow"></div>
</div>
<script type="text/javascript" src="engine1/wowslider.js"></script>
<script type="text/javascript" src="engine1/script.js"></script>
<!-- End WOWSlider.com BODY section -->
And Here what I have for perch integration.
<div class="ws_images">
<ul>
<perch:repeater id="images" label="Images">
<perch:before><li></perch:before>
<a href="<perch:content id="url" type="text" label="Webpage Name" replace="https://|" help="Example: https://business.lccmadison.org/events/details/2014-latin-preneur-awards-annual-gala-7" />" target="_self">
<img src="<perch:content type="image" id="image" sharpen="0" label="Image" quality="100" width="488px" height="300px" crop="false" bucket="front_page_gallery"/>" alt="<perch:content type="text" id="title" label="Title" help="Title of the Image"/>" title="<perch:content type="text" id="title" label="Title" help="Title of the Image"/>" id="wows1_<perch:content type="text" id="number" label="Number" help="Example: Start with 0 then 1 and so on."/>"/>
</a><perch:content type="text" id="description" label="Description" help="Description of the Image"/>
<perch:after></li></perch:after>
</perch:repeater>
</ul>
</div>
<div class="ws_bullets">
<div>
<perch:repeater id="order" label="Order">
<a href="#" title="<perch:content type="text" id="title" label="Title" help="Title of the Image"/>"><perch:content type="text" id="number1" label="Number" help="Example: Start with 1 then 2 and so on."/></a>
</perch:repeater>
</div>
</div>
What happens?
After I click on the region then click "Select or upload an image" then I click "Add Asset" then I click to select an image to upload but it doesn't load into the bucket.
Does it load into a different bucket? No bucket at all?
Do you get any errors? Anything in your error log?
How big is the image? Is it less that your maximum upload size? Do you have enough memory to manipulate it?
No bucket at all.
Where would I check the error log?
The image size is only 132KB.
Your host should be able to point you to your PHP error logs if you can't find them.
I looked at my error logs and it doesn't show anything wrong.
How many items do you have on the page?
Sorry Drew, But can you tell me if my code is ok or not? Are you asking these questions because my code looks fine?
I don't know what problem you're experiencing, so I'm trying to find information in order to help.
Could I send you screen shots?
How many items do you have on the page? If you can answer the questions asked of you that would be help us help you.
I have one item on the page but it's on a different region. I have Zero items in this region.
Can you try removing the 'px' you have after your image sizes? Pixels is a given you don't need to specify it.
Also you've set a width and height but crop to false which would end up with distorted images. I'd suggest either setting width OR height, so it will scale in proportion. If it needs to be fixed size then set crop to true.
Ok I some how got it to work. But now I'm just putting in this simple code and it's doing the same thing. I go to load an asset and it looks like it loads but then it just disappears.
Here's my code.
You have
px
in your image sizes here too. Remove that.Ok I removed them but I still get the same result.
If I count correctly, your bucket name is longer than the 16 char maximum.
Holy crap....That's what it was. Thanks Drew :)