Comments (2)
Hi @rajakhoury that make the trick.
Thanks 👍
from uploader-plugin.
Did you try to add it in the init()
method of your component ?
try
public $user;
public function init()
{
$this->user = $this->user();
$this->attachUploader();
}
public function onRun()
{
$this->page['user_profile'] = $this->user;
}
public function addUploader()
{
if ($this->user) {
$this->imageUploader = $this->addComponent(
'NetSTI\Uploader\Components\ImageUploader',
'imageUploader',
['modelClass' => 'RainLab\User\Models\User', 'modelKeyColumn' => 'avatar', 'deferredBinding' => true]
);
$this->imageUploader->bindModel('avatar', $this->user );
}
}
from uploader-plugin.
Related Issues (20)
- Uploader button not working HOT 4
- $(...).render is not a function at uploader.js HOT 10
- [Question] Uploading under same-site subdomain HOT 2
- Trouble in implementing in custom plugin
- Image preview width and height on component does't work. HOT 2
- Multiple instances of Plugin not working. HOT 7
- Validation Extension and Max Size Issue attaching from component HOT 2
- Asset combining not working for addCss and addJs using arrays HOT 5
- files not found HOT 1
- Codeception confused trying to submit the form with uploader HOT 3
- Reorder multiple files?
- using two image-uploaders on single page has issues HOT 1
- sometimes|nullable HOT 2
- Passing additional uploaderOptions to DropZone HOT 6
- chunking with S3
- Files not sorting HOT 1
- imageUploader and fileUploader in the same page not working HOT 3
- IOS "File Missing from request" Error HOT 6
- TypeError: undefined is not an object (evaluating '$.fn') HOT 1
- Vanilla JS / Remove jQuery Dependency HOT 1
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 uploader-plugin.