Comments (3)
Ok, thank you! That is really good idea. I will think about the solution on my free time.
from yii2-attachments.
@Larrytx could you please change the subject to something meaningful, like Add image caption support or something like that? thanks
@nemmo I'm trying to implement this, but I'm having some troubles... I found the way to customize the upload preview template to include a text field, but then I have no idea on how to associate this textfield to the uploaded file. If I got it right you upload the files using the controller and save them in the behavior, but there's no information exchanged between the two.
I found I can POST the text field using file-input's uploadextradata method, but I'm missing how to transfer this info from the FileController->actionUpload
method to the Module's attachFile
, where the DB is updated...
If you have any idea it will be welcome. thanks
from yii2-attachments.
I made some work on this issue on a forked branch
here.
Sadly it's not fully working and I'm lacking time to further fix the remaining (non trivial) issues. But could be a starting point, if someone else has more time/ideas. I made a long commit message stating the situation.
Sorry but the commit includes stuff from other branches
from yii2-attachments.
Related Issues (20)
- Fyi: Similar extension. HOT 1
- Upload single file
- Thumbnail style view HOT 3
- How to add dynamic location
- when uploaded file has no extension upload failes (type cannot be empty in model)
- array_slice() expects parameter 1 to be array, object given HOT 4
- Problem when using AR in console HOT 1
- AttachmentsInput and AttachmentsTable do not display
- Configuration of migration HOT 1
- Failed to hide initialPreview
- Event afterUpload
- Yii2 attachment module not found
- How to get the url to the already uploaded image HOT 1
- How to copy (duplicate) attachments from one model to another?
- Possibility of attaching files to the model with possible errors
- Open file instead of download HOT 1
- Replace saving short model name with full
- Problem with drag & drop with new version of fileinput
- Calling multiple saves of the model on same request raises Exception
- 404 page not found .....?r=attachments%2Ffile%2Fupload
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 yii2-attachments.