Comments (14)
I've updated the documentation, please try it again, haven't tested it myself because I would have to set the whole thing up again.
There is no project public available that uses the plugin, as far as I know, and I don't think it is necessary. The plugin comes with a ton of documentation. If you need personal assistance you can hire me.
The issue you found wasn't hard to fix either, I guess you're a beginner in CakePHP, so I would recommend you to do the blog tutorial first. The documentation might still have here and there more or less old code examples because it was updated from CakePHP 2.x, I thought I've got all the things right but obviously there are still some things left... sorry!
from cakephp-file-storage.
Thank you for getting back to me, I appreciate all your work.
One quick last question if you dont mind
In the quickstart in your controller you call
$this->Products->ProductImages->upload($productId, $entity)
But in your table and ImageStorageTable that you extend there is no upload,
you have
public function uploadImage($productId, $entity) {
Should it be using that instead?
On Sun, Aug 16, 2015 at 6:36 AM, Florian Krämer [email protected]
wrote:
Closed #86.
—
Reply to this email directly or view it on GitHub.
Art Siriamonthep
from cakephp-file-storage.
Thanks for answer in the cake chat
I got the files to upload to the table but it wont appear in my tmp
folder even after I changed adaptor-option
I noticed the link you provided me in the chat was file-storage master
branch i was using the 3.0 branch which one should i be using? Master?
On Sun, Aug 16, 2015 at 8:55 AM, Art Sir [email protected] wrote:
Thank you for getting back to me, I appreciate all your work.
One quick last question if you dont mindIn the quickstart in your controller you call
$this->Products->ProductImages->upload($productId, $entity)But in your table and ImageStorageTable that you extend there is no upload,
you have
public function uploadImage($productId, $entity) {Should it be using that instead?
On Sun, Aug 16, 2015 at 6:36 AM, Florian Krämer [email protected]
wrote:Closed #86.
—
Reply to this email directly or view it on GitHub.Art Siriamonthep
Art Siriamonthep
from cakephp-file-storage.
I noticed the link you provided me in the chat was file-storage master
Sorry!
branch i was using the 3.0 branch which one should i be using? Master?
3.0 = CakePHP 3.0
master = CakePHP 2.0
Use Composer: ~0.0 for CakePHP 2 and ~1.0 for CakePHP 3.0. See https://github.com/burzum/cakephp-file-storage/wiki/Roadmap
from cakephp-file-storage.
Hey, just wanted to let you know it works now. It was something really dumb
my fault. Thank you for your patience.
On Sun, Aug 16, 2015 at 11:23 AM, Florian Krämer [email protected]
wrote:
I noticed the link you provided me in the chat was file-storage master
Sorry!
branch i was using the 3.0 branch which one should i be using? Master?
3.0 = CakePHP 3.0
master = CakePHP 2.0Use Composer: ~0.0 for CakePHP 2 and ~1.0 for CakePHP 3.0. See
https://github.com/burzum/cakephp-file-storage/wiki/Roadmap—
Reply to this email directly or view it on GitHub
#86 (comment)
.
Art Siriamonthep
from cakephp-file-storage.
Hey man, I hate to bother you again. I am really trying to figure this out
on my own. When I pass in my ID from the file storage table through the
image helper it doesn't work or return anything.
I attached an image to my situatio. Thank you for your time.
[image: Inline image 1]
On Sun, Aug 16, 2015 at 3:11 PM, Art Sir [email protected] wrote:
Hey, just wanted to let you know it works now. It was something really
dumb my fault. Thank you for your patience.On Sun, Aug 16, 2015 at 11:23 AM, Florian Krämer <[email protected]
wrote:
I noticed the link you provided me in the chat was file-storage master
Sorry!
branch i was using the 3.0 branch which one should i be using? Master?
3.0 = CakePHP 3.0
master = CakePHP 2.0Use Composer: ~0.0 for CakePHP 2 and ~1.0 for CakePHP 3.0. See
https://github.com/burzum/cakephp-file-storage/wiki/Roadmap—
Reply to this email directly or view it on GitHub
#86 (comment)
.Art Siriamonthep
Art Siriamonthep
from cakephp-file-storage.
I think it has something to do with the hash field. It's empty.
On Wed, Aug 19, 2015 at 11:15 AM, Art Sir [email protected] wrote:
Hey man, I hate to bother you again. I am really trying to figure this out
on my own. When I pass in my ID from the file storage table through the
image helper it doesn't work or return anything.I attached an image to my situatio. Thank you for your time.
[image: Inline image 1]On Sun, Aug 16, 2015 at 3:11 PM, Art Sir [email protected] wrote:
Hey, just wanted to let you know it works now. It was something really
dumb my fault. Thank you for your patience.On Sun, Aug 16, 2015 at 11:23 AM, Florian Krämer <
[email protected]> wrote:I noticed the link you provided me in the chat was file-storage master
Sorry!
branch i was using the 3.0 branch which one should i be using? Master?
3.0 = CakePHP 3.0
master = CakePHP 2.0Use Composer: ~0.0 for CakePHP 2 and ~1.0 for CakePHP 3.0. See
https://github.com/burzum/cakephp-file-storage/wiki/Roadmap—
Reply to this email directly or view it on GitHub
#86 (comment)
.Art Siriamonthep
Art Siriamonthep
Art Siriamonthep
from cakephp-file-storage.
@artnos Which version are you using? Can you paste the code which isn;t working as expected?
from cakephp-file-storage.
The code that isn't working as expect is $this->Image->display(
$product->file_storage[0]->id );
I echo $product->file_storage[0]->id and the id from the file_storage
table is returned.
I added the Image helper in app view
Upload works fine and is added to my file_storage table
i did composer install on
"burzum/file-storage": "3.0.@dev",
"burzum/cakephp-imagine-plugin": "3.0.@dev",
I attached an image that displayed all the things i checked
thank you so much for taking the time
[image: Inline image 1]
On Wed, Aug 19, 2015 at 2:57 PM, Robert Pustułka [email protected]
wrote:
@artnos https://github.com/artnos Which version are you using? Can you
paste the code which isn;t working as expected?—
Reply to this email directly or view it on GitHub
#86 (comment)
.
Art Siriamonthep
from cakephp-file-storage.
img link here
https://www.dropbox.com/s/tirgkx6su83s2xc/file-storage.jpg?dl=0
On Wed, Aug 19, 2015 at 3:33 PM, Art Sir [email protected] wrote:
The code that isn't working as expect is $this->Image->display(
$product->file_storage[0]->id );
I echo $product->file_storage[0]->id and the id from the file_storage
table is returned.
I added the Image helper in app view
Upload works fine and is added to my file_storage tablei did composer install on
"burzum/file-storage": "3.0.@dev",
"burzum/cakephp-imagine-plugin": "3.0.@dev",I attached an image that displayed all the things i checked
thank you so much for taking the time[image: Inline image 1]
On Wed, Aug 19, 2015 at 2:57 PM, Robert Pustułka <[email protected]
wrote:
@artnos https://github.com/artnos Which version are you using? Can you
paste the code which isn;t working as expected?—
Reply to this email directly or view it on GitHub
#86 (comment)
.Art Siriamonthep
Art Siriamonthep
from cakephp-file-storage.
@artnos ImageHelper methods work on an entity, not an id.
Try:
$this->Image->display($product->file_storage[0]);
from cakephp-file-storage.
oh okay! thank you, so i passed in
//$product->file_storage[0]
and it gave me an image!
awesome making progress!
but my image is located in the folder 'files'
so it should be
files/images/Products/43/77/81/e5b6d825cc574f1587bafe16e0aca67e/e5b6d825cc574f1587bafe16e0aca67e.19e760eb.jpg
here is my storage manager
StorageManager::config('Local', [
'adapterOptions' => [ROOT . DS . 'webroot' . DS . 'files' ], // Your
base path here
'adapterClass' => '\Gaufrette\Adapter\Local',
'class' => '\Gaufrette\Filesystem'
]);
do you know why it doesn't pick up that they are in the files folder or is
that something i have to handle in the view
On Wed, Aug 19, 2015 at 4:20 PM, Robert Pustułka [email protected]
wrote:
@artnos https://github.com/artnos ImageHelper methods work on an
entity, not an id.—
Reply to this email directly or view it on GitHub
#86 (comment)
.
Art Siriamonthep
from cakephp-file-storage.
@artnos ImageProcessingListener
adds the images
prefix, here. You must be using LocalFileStorageListener
which adds the files
prefix, here. With ImageProcessingListener
ImageStorageTable
will be used.
from cakephp-file-storage.
Thank you that helps !
On Wed, Aug 19, 2015 at 9:56 PM, Adnan0703 [email protected] wrote:
@artnos https://github.com/artnos ImageProcessingListener adds the
images prefix, here
https://github.com/burzum/cakephp-file-storage/blob/3.0/src/Event/ImageProcessingListener.php#L261.
You must be using LocalFileStorageListener which adds the files prefix,
here
https://github.com/burzum/cakephp-file-storage/blob/3.0/src/Event/LocalFileStorageListener.php#L81
.—
Reply to this email directly or view it on GitHub
#86 (comment)
.
Art Siriamonthep
from cakephp-file-storage.
Related Issues (20)
- No versions of jpeg files HOT 4
- Keep a Change Log HOT 2
- Can't save file when creating related model HOT 2
- Upgrading from v1 to v2 HOT 7
- Tag current 2.0 version with next semver tag HOT 1
- How can one add to the list of supported adapter classes? HOT 5
- No image manipulation or correct url paths being returned HOT 2
- updating docs HOT 3
- Todo: Add migration guide from Cake 3 to 4 HOT 2
- updating docs
- Class could be found HOT 4
- Followed the guidelines in documentations server complaints 'Burzum\FileStorage\Event\LocalFileStorageListener' not found HOT 3
- Created a script to upload files to S3 - files uploaded but script throws error The listener `Burzum\FileStorage\Storage\Listener\LocalListener` doesn't allow the `\Gaufrette\Adapter\AwsS3` adapter class! Probably because it can't work with it HOT 4
- cakephp/cakephp 4.0.x dependency issue HOT 7
- Version 4.0 (complete rewrite) HOT 3
- Antipattern showcase
- Link in docs is broken
- Issues with upload for 1:1 HOT 1
- Issues installing via composer HOT 8
- Looking for a new maintainer
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cakephp-file-storage.