Drag and drop image upload component development help needed

Joseph Blanchard Posted in Beginning Developers 2 years ago

ive put in some code to drag and drop images to the edit form for post
demo code for drag and drop components/OssnWall/plugins/default/forms/OssnWall/user/container.php
https://pastebin.com/2C4VpQd1
it works but
i dont know how to hook the file photo up-load so when you press post it dose the magic
anyone have clue where the code is for handling that .. there is a underlying system here i can see for plugins but i dont know how to take advantage of it

yes i understand there are some parts of this code that are not awsome i will fix it when i make a proof of concept

This topic has been closed!

[Topic is Close]

Replies
Indonesian Arsalan Shah Replied 7 days ago

Joseph, banning your account for using swear words

Latest version supports Multiple Images Selection on wall. So closing this thread.

Image

Dutch Eric redegeld Replied 7 days ago

okay, think i got it, love to share the code with you.
just got some help from my colleague and it now works well(for me)
multiple, or one by one

Dutch Eric redegeld Replied 7 days ago

please remove the code sample for me

Dutch Eric redegeld Replied 7 days ago

ow, yess sorry
But is this correct way to do this with the code.
lol was already prout it works for me(without chatgpt)

Indonesian Arsalan Shah Replied 7 days ago

Eric please avoid posting premium code online.
Ok by looking your code you are just updating count you need to manipulate the

input[type="file"][name="images[]"]

With images

Dutch Eric redegeld Replied 7 days ago

Made an adjustment on stories.
Option drag and drop

C:\Users\Eric Redegeld\OneDrive\Privé\Nieuwe map\modules\stories\plugins\default\forms\stories\add.php

https://youtu.be/NX3e95fkR2U
example from my site
and here the code
https://pastebin.com/zEqjPQ9h

Richt now multiple images dragging works, only if you add(drag) one the you can not add more.
Stille fiddle with that one.

Is this the correct way?

us Joseph Blanchard Replied 2 years ago

1: You are opening your sitewide channel for vulnerabilities from that code.
Answer:yes i understand there are some parts of this code that are not awsome i will fix it when i make a proof of concept
2:I am have no time right now to look into how it make it work with posts
Answer: im not asking you to make it work, im asking where to look for the photo post code that handles the file upload

Indonesian Arsalan Shah Replied 2 years ago

You are opening your sitewide channel for vulnerabilities from that code. I am have no time right now to look into how it make it work with posts maybe someone might can help here.