Git Product home page Git Product logo

Comments (3)

CTOlet avatar CTOlet commented on July 29, 2024

Ok, thank you! That is really good idea. I will think about the solution on my free time.

from yii2-attachments.

maxxer avatar maxxer commented on July 29, 2024

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

maxxer avatar maxxer commented on July 29, 2024

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)

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.