GithubHelp home page GithubHelp logo

bvi-fileupload's Introduction

Documentation* Run below command to install from composer

composer require kapilpatel20/bvi-fileupload dev-master

Add bundle in AppKernel.php in registerBundles function

new BviFileUploadBundle\BviFileUploadBundle(),

General Settings****

//Water mark tag settings

$data['watermark'] = true or false; $data['main_water_mark_path'] = // Main water mark thumb image if watermark option true

//Upload file

$info = $this->get("bvi.helper.upload")->fileHandler($data,$_FILES);

params $data as configuration array params $_FILES as file object

//Generate Thumbs settings

For example*********** $sizeArr = array(); $sizeArr[0]['destW'] = 165; $sizeArr[0]['destH'] = 165;

$sizeArr[1]['destW'] = 350; $sizeArr[1]['destH'] = 350;

Here params or index key are as:

destW is width of thumb image destH is height of thumb image

$data['resize'] = true; $data['dims_arr'] = $sizeArr;

//Upload and generate thumbs file

$info = $this->get("bvi.helper.upload")->fileHandler($data,$_FILES);

//If you want to apply water mark as per generate thumbs:

$dataDimWaterMark = array(); $dataDimWaterMark[0] = 'WATER MARK IMAGE PATH ONE'; $dataDimWaterMark[1] = 'WATER MARK IMAGE PATH TWO';

$data['water_dims_img'] = $dataDimWaterMark;

*/

// Delete a file

$this->get("bvi.helper.upload")->removeFiles('MEDIA_ID','BASIC_PATH','FILE_NAME');

**/

bvi-fileupload's People

Contributors

rahultrivedi20 avatar

Watchers

James Cloos avatar Kapil Patel avatar

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.