I'm new in CakePHP and trying to learn but I don't understand this part very well..
I'm using this CakePHP Upload plugin to upload images for users(avatars) and using imagick it resize image to certain sizes(thumbs)...
I follow Upload plugin instructions for uploading image. I manage to store image file and image directory in database. So column photo in database would be (imagename.jpg) and photo directory would be userid,
for example (35). Image also appear in files/user/userid/imagename.jpg
Now may be it's funny but how I output this image and display in view file ? Also is there possibility to randomize file name ? (so the file name is not same as uploaded)
to view your upload in view files of CakePHP
you write in ctp files like
$html->link($html->image('files/user/".$userId."/".$ImageName."', array('alt'=>"User Image", 'border'=>"0"))
,'#',array('id'=>$userId, 'escape'=>false));
let me know if i can help you further,
Related
I want to make thumbnails of pdf,images and video file using angularjs
I found one git example for that
https://github.com/aztech-digital/angular-thumbnails
Please go through the link i have tried this but i am new in angularjs and I dont know how to call a directive.
Please help me to implement this i am using php codeigniter with angularjs
what I want is I have an option to upload multiple files which will contain pdf,doc,docx,xls,mpg,jpg etc.I want to create a thumbnail of all these type of files. for eg: if a case I am uploading pdf the first page of pdf should be the thumbnail of that file.
how i can implement this example
here i saw one example which will create only for images
Thank you
i have a joomla 3.0 component for movies sales (PICSELL) but i want to add an option where i can choose to upload movies using (Custom URL to upload movie and Images) the component already has file manager where to upload movies,images,prices,movie type (zip file or flv) and i want to add an option to it so that ones i put the url it will call both video and image from my server due to uploading problems and internet connection problem by uploading from file manager.while adding the URL option other information should be same in the file manager.so the option button will be shown ontop of the file manager to choose between uploading via file manager or via URL
how do i do that? what code will i use and where to use the code?
You want load videos from upload file or url path
i see the documentation and using multiple site.
Its totally free
General Video : Select when you upload video from your hard disk or
through a direct video file path
I have suggest yendif player
I am uploading a PDF file. At the time of upload, I want to create a thumbnail image of the first page, and also want to save the file name into the database and file into a folder. How can I do this?
I am not able to insert file manager and image upload option for ckeditor, please can some one share the php code for that, i tried to make this, not getting upload image option
You Can use a plugin in your ckeditor to image upload,
there are many image upload plugins available for ckeditor 2 are here
simpleuploads-plugin-for-ckeditor Demo.
ckfinder
I am new to ci. I have seen the documentation for file uploader and
implemented the sample page. But I want to upload the image and store it into MySQL database.
Can anyone provide solution for it with example?
Upload the image to a folder called uploads and then store the path to the image in your DB