Coder Social home page Coder Social logo

Comments (14)

burzum avatar burzum commented on May 20, 2024

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.

artnos avatar artnos commented on May 20, 2024

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.

artnos avatar artnos commented on May 20, 2024

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 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

Art Siriamonthep

from cakephp-file-storage.

burzum avatar burzum commented on May 20, 2024

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.

artnos avatar artnos commented on May 20, 2024

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.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


Reply to this email directly or view it on GitHub
#86 (comment)
.

Art Siriamonthep

from cakephp-file-storage.

artnos avatar artnos commented on May 20, 2024

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.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


Reply to this email directly or view it on GitHub
#86 (comment)
.

Art Siriamonthep

Art Siriamonthep

from cakephp-file-storage.

artnos avatar artnos commented on May 20, 2024

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.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


Reply to this email directly or view it on GitHub
#86 (comment)
.

Art Siriamonthep

Art Siriamonthep

Art Siriamonthep

from cakephp-file-storage.

robertpustulka avatar robertpustulka commented on May 20, 2024

@artnos Which version are you using? Can you paste the code which isn;t working as expected?

from cakephp-file-storage.

artnos avatar artnos commented on May 20, 2024

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.

artnos avatar artnos commented on May 20, 2024

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 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

Art Siriamonthep

from cakephp-file-storage.

robertpustulka avatar robertpustulka commented on May 20, 2024

@artnos ImageHelper methods work on an entity, not an id.

Try:

$this->Image->display($product->file_storage[0]);

from cakephp-file-storage.

artnos avatar artnos commented on May 20, 2024

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.

Adnan0703 avatar Adnan0703 commented on May 20, 2024

@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.

artnos avatar artnos commented on May 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.