Multiple images uploader, for those in need

Get help using Construct 2

Post » Sat Mar 21, 2015 1:28 pm

I have seen quite a few topics relating to multiple images uploading, so I thought ... lemme try :D

Gave it a few hours and I succeeded :geek:
Just 9 events and a tiny php file.

Here is a demo

The demo is not configured to send stuff to my server :P, but works for selecting images.



This uses R0j0hounds paster plugin ;) (great stuff man)
It uses a php capable webserver as a back-end to store the images on a server.
I used an array to bypass the need for those nasty frames if you want to add unlimited images :P


Config / Settings
- On your webserver, make a folder called "imageuploader", in here you place the from zip extracted php file from this dropbox link.
- In the Capx file in this dropbox link, replace the global var content with your web address.
ie
"Your Web Without HTTP and no Folder Name" needs to become "yourwebsite.com"

If you created the imageuploader folder in a sub directory, say 'test', the address becomes yourwebsite.com/test




Usage

Select one or multiple images for upload, and when done, click OK. This will start sending the files to your server. (mere second)There are little scaled thumbs generated, you can click them to show the bigger image :)


The PHP file has a bit of extra, it can also read the images from the folder automatically.

So, if your entered web adres mysite.com c2 global var, you can use a browser to open http://mysite.com/imageuploader/image.php and it will display your images (after you uploaded them and did a reload of course)



this is just a first version .... I will update it perhaps ... perhaps not ...

Feel free to steal it and get your freak on ;)
Who dares wins
B
57
S
17
G
21
Posts: 1,878
Reputation: 19,567

Return to How do I....?

Who is online

Users browsing this forum: brunopalermo, R0J0hound, tarek2, trance, yiuyiu6666 and 20 guests