EvilZone

Community => News and Announcements => : ande December 03, 2014, 02:40:12 PM

: I heard you wanted a upload script upgrade?
: ande December 03, 2014, 02:40:12 PM
Good day fellow evilzoners,

Today I was in a good mood and decided to whip up something nice for you guys. So I created a SMF mod of the alpha upload script (For those who know what that is..).

I know I have been promising alpha for a long time now, so this is a bit of a early taste.

I replaced the old upload script with this one and can be seen at http://upload.evilzone.org

Oh and dont worry about the old files, they will still work.

This new script has a login feature which makes it possible to delete uploaded files as well as see download/view statistics. Oh and it has an image upload feature as well.

PS: If you find any funky bugs, please do tell :)


Cheers!
: Re: I heard you wanted a upload script upgrade?
: Phage December 03, 2014, 03:28:35 PM
Love it

Now give me something to work with, so I can create automatic image upload :D
: Re: I heard you wanted a upload script upgrade?
: ande December 03, 2014, 03:32:30 PM
Love it

Now give me something to work with, so I can create automatic image upload :D

As in programmatically uploading something? Shouldn't be too hard. Check the JS.
: Re: I heard you wanted a upload script upgrade?
: Phage December 03, 2014, 03:38:16 PM
Was more thinking of creating a CLI script to take screenshot (already have that) and upload to our own service ;)
: Re: I heard you wanted a upload script upgrade?
: proxx December 03, 2014, 03:58:11 PM
Was more thinking of creating a CLI script to take screenshot (already have that) and upload to our own service ;)
I suggest you get those python hands dirty ;)
: Re: I heard you wanted a upload script upgrade?
: ande December 03, 2014, 04:42:18 PM
The multi-file upload and BBcode generator is particularly nice for uploading large collections of stuff :)

EDIT: Lets say I wanted to upload a source code collection eh? Literally uploaded and copy pasted here in less than 5 seconds:

DbPackages-mysql.php (http://upload.evilzone.org?page=download&file=1wRqjJHPLAtT5FGi04uKlR0GnnSF606MeFUw4eL6qIFq1jXdd8)
DbPackages-postgresql.php (http://upload.evilzone.org?page=download&file=9CRO76tIgJ81uchhoAgHGcroACWm6APjmMUqLgxQmx81e7oZ3f)
DbExtra-sqlite.php (http://upload.evilzone.org?page=download&file=vIpI7g1xFF1fFazTWVxMCKUAC7sn3AOcQuB3MsEXDVYwQjOxIv)
DbSearch-mysql.php (http://upload.evilzone.org?page=download&file=Jzrk2ya5tYq48FFBB3idBDG3Rej0NQlGXKYnnRAhpjXdrpMSCJ)
DbExtra-mysql.php (http://upload.evilzone.org?page=download&file=16zVk0fX8U6cVVfat2xS1cF0ItXTx60JGN4N917LN6yrhvcr3D)
DbSearch-postgresql.php (http://upload.evilzone.org?page=download&file=7p3NutNk28mGXf1Bw5HmIsKBUnZTXHkm6EhJjmRopPZHVEjlqc)
DbPackages-sqlite.php (http://upload.evilzone.org?page=download&file=wi6YqstJx3QkCjbfQtJsymeqXXFjhwazjUp5gjEiN3eARe39nr)
DbSearch-sqlite.php (http://upload.evilzone.org?page=download&file=rRyp5KGzsxHT0f62KkXFzNv9ksyuQITjE5xXwcQGaKB8dImwZr)
DbExtra-postgresql.php (http://upload.evilzone.org?page=download&file=ZFHbA4XJLch2tgykBzs0YdJnMqEqVAZo4Abe7YbEjAh8LSig2A)
: Re: I heard you wanted a upload script upgrade?
: Pak_Track December 03, 2014, 05:38:34 PM
Why does it say that it's currently hosting only 17 files?
: Re: I heard you wanted a upload script upgrade?
: Nowsh December 03, 2014, 05:42:26 PM
Why does it say that it's currently hosting only 17 files?
Because it's currently hosting only 17 files.
: Re: I heard you wanted a upload script upgrade?
: Polyphony December 03, 2014, 05:46:51 PM
Awesome job ande, can't wait until alpha is live, I dig the look/feel/logo/new functionality so much.  I've poked fun at you before (see here (http://i.imgur.com/If5sZBn.png) lol) but I wouldn't be able to do it man, and this is sick.  :)

Do you have a git repo for Evilzone Alpha?  Not sure if it's been asked for before (probably has) but I think having a public or approved-users-only git repo would be awesome.
: Re: I heard you wanted a upload script upgrade?
: ande December 03, 2014, 05:49:01 PM
Why does it say that it's currently hosting only 17 files?

The old files are not counted in this new system. But they are still there to download.

Awesome job ande, can't wait until alpha is live, I dig the look/feel/logo/new functionality so much.  I've poked fun at you before (see here (http://i.imgur.com/If5sZBn.png) lol) but I wouldn't be able to do it man, and this is sick.  :)

Do you have a git repo for Evilzone Alpha?  Not sure if it's been asked for before (probably has) but I think having a public or approved-users-only git repo would be awesome.

We do have a private git repo. But seeing how I do most of this by myself I dont use it much. A bit for bug/ticket tracking, but not much else. Getting people engaged and working on something like this is not as easy as it sounds :P And I get it, people are busy, so am i.
: Re: I heard you wanted a upload script upgrade?
: Phage December 03, 2014, 05:54:36 PM
Hey, I wanted to help, and peeps be like; This is written in a weird way, you'd had to be super experienced with PHP to be able to contribute.
: Re: I heard you wanted a upload script upgrade?
: ande December 03, 2014, 05:56:58 PM
Hey, I wanted to help, and peeps be like; This is written in a weird way, you'd had to be super experienced with PHP to be able to contribute.

You are welcome to poke around in the code until you figure it out :P Its not that super complicated either really. But its much harder to jump into a project half way than to have worked on it from the start.
: Re: I heard you wanted a upload script upgrade?
: Phage December 03, 2014, 05:57:37 PM
Just say you want all the fame yourself and therefore don't want to share the project with me :P
: Re: I heard you wanted a upload script upgrade?
: ande December 03, 2014, 06:03:15 PM
You have access to the git, now I added you to the two other alpha projects as well.
: Re: I heard you wanted a upload script upgrade?
: kenjoe41 December 03, 2014, 07:23:58 PM
Can't it really just use my cookie. Do i have to login again, like it is its own system and not part of the current EZ network. Ok, let me see if it is directed to the current EZ user DB. Else i am going to kill a goat.

Ok, it updated and automatically logged me in. Now, lets poke around.
: Re: I heard you wanted a upload script upgrade?
: ande December 03, 2014, 07:26:13 PM
Can't it really just use my cookie. Do i have to login again, like it is its own system and not part of the current EZ network. Ok, let me see if it is directed to the current EZ user DB. Else i am going to kill a goat.

Ok, it updated and automatically logged me in. Now, lets poke around.

Clicking the login link on upload.evilzone.org will grab the SMF session from evilzone.org and fetch your user.
: Re: I heard you wanted a upload script upgrade?
: Kulverstukas December 03, 2014, 07:39:12 PM
Clicking the login link on upload.evilzone.org will grab the SMF session from evilzone.org and fetch your user.
Why didn't you do it to be automatic?
: Re: I heard you wanted a upload script upgrade?
: ande December 03, 2014, 08:04:21 PM
Cookies doesn't cross subdomains unless told to, and I am not gonna start messing with the SMF cookie/session system. I guess it would be possible to do a automatic roundtrip redirect tho. Ill think about it.
: Re: I heard you wanted a upload script upgrade?
: mushinz December 03, 2014, 10:25:42 PM
I apologize for this nooby question  :-[  but is there a way to roam the data that is uploaded?
: Re: I heard you wanted a upload script upgrade?
: ande December 04, 2014, 06:31:04 AM
I apologize for this nooby question  :-[  but is there a way to roam the data that is uploaded?

Not sure what you mean?
: Re: I heard you wanted a upload script upgrade?
: rasenove December 04, 2014, 07:35:19 AM
Not sure what you mean?
He means of it's possible to browse/explore/view the uploaded files.
: Re: I heard you wanted a upload script upgrade?
: ande December 04, 2014, 08:05:01 AM
He means of it's possible to browse/explore/view the uploaded files.

You can view the files and images you yourself have uploaded, but not others.
: Re: I heard you wanted a upload script upgrade?
: Code.Illusionist December 04, 2014, 08:36:10 AM
This all looks very awesome. Great work.
: Re: I heard you wanted a upload script upgrade?
: kenjoe41 December 04, 2014, 09:30:40 AM
My concern, how is that going to keep the privacy policy of the users that upload the files. I mean the old excuse was that "We don't know who uploaded that file so we can't provide data to help you the feds." But now that their is a digital trail, how shall we dodge it?
: Re: I heard you wanted a upload script upgrade?
: Kulverstukas December 04, 2014, 10:27:22 AM
My concern, how is that going to keep the privacy policy of the users that upload the files. I mean the old excuse was that "We don't know who uploaded that file so we can't provide data to help you the feds." But now that their is a digital trail, how shall we dodge it?
I think it's still unknown who uploaded a particular file, because information is saved locally.
: Re: I heard you wanted a upload script upgrade?
: Phage December 04, 2014, 12:41:58 PM
Also, afaik it's still possible to upload files without being logged in.
: Re: I heard you wanted a upload script upgrade?
: ande December 04, 2014, 07:20:29 PM
Use another browser or incognito mode and upload without logging in. Alternatively log out of your EZ account and refresh upload.evilzone.org
: Re: I heard you wanted a upload script upgrade?
: mushinz December 05, 2014, 12:25:57 PM
You can view the files and images you yourself have uploaded, but not others.

is there a reason why we are not allowed do that?

: Re: I heard you wanted a upload script upgrade?
: ande December 05, 2014, 12:40:04 PM
is there a reason why we are not allowed do that?

People might want private files. Could ofc make a public archive option, but that will be for later if ever.
: Re: I heard you wanted a upload script upgrade?
: Pak_Track December 05, 2014, 12:59:35 PM
Files can be downloaded should the other person have the URL, right?
: Re: I heard you wanted a upload script upgrade?
: Kulverstukas December 05, 2014, 01:19:12 PM
Files can be downloaded should the other person have the URL, right?
Yes.
: Re: I heard you wanted a upload script upgrade?
: mushinz December 05, 2014, 08:57:02 PM
People might want private files. Could ofc make a public archive option, but that will be for later if ever.


It is difficult to make it I suppose?
These questions come from my lack of knowledge so please don't throw hellfire on me :)
: Re: I heard you wanted a upload script upgrade?
: rasenove December 06, 2014, 06:27:23 AM

It is difficult to make it I suppose?
These questions come from my lack of knowledge so please don't throw hellfire on me :)
What's the point of having a public archive when you can't identify the files. All the files have random numbers as their name.
ande should work on the offline/server side upload insted.
: Re: I heard you wanted a upload script upgrade?
: Pak_Track December 06, 2014, 06:55:56 AM
This is basically the old service with exponential aesthetic improvements and the perks of viewing your uploaded content instead of browsing through your bookmarks or whatever. If you want to share your stuff, just send the other person the URL.
One thing nice would be to allow uploading images from a URL. That way, one can make sure that the images don't go anywhere if the server on which it's hosted changes/deletes it.
: Re: I heard you wanted a upload script upgrade?
: ande December 06, 2014, 08:58:46 AM

It is difficult to make it I suppose?
These questions come from my lack of knowledge so please don't throw hellfire on me :)

Its not that difficult, it just wasn't part of the initial idea. But its not a bad idea.


What's the point of having a public archive when you can't identify the files. All the files have random numbers as their name.
ande should work on the offline/server side upload insted.

Have you even tried downloading a file? :P NO parts of the old system is in this system, its new, from scratch. The original file names are kept. Offline/server side upload?


This is basically the old service with exponential aesthetic improvements and the perks of viewing your uploaded content instead of browsing through your bookmarks or whatever. If you want to share your stuff, just send the other person the URL.
One thing nice would be to allow uploading images from a URL. That way, one can make sure that the images don't go anywhere if the server on which it's hosted changes/deletes it.

Remote upload from URL would be nice indeed. Noted for future.
: Re: I heard you wanted a upload script upgrade?
: iTpHo3NiX December 07, 2014, 02:50:18 AM
I'd still like to see ftp/fxp so I can just share files from my seedbox. Lol glad to see we get a tease of alpha
: Re: I heard you wanted a upload script upgrade?
: Kulverstukas December 07, 2014, 01:19:29 PM
Uploading images (as images) puts them into the file list, and they don't appear in image list.
: Re: I heard you wanted a upload script upgrade?
: ande December 07, 2014, 06:36:49 PM
Uploading images (as images) puts them into the file list, and they don't appear in image list.

If you want the image to be displayable you have to use the IMAGE upload...
: Re: I heard you wanted a upload script upgrade?
: Kulverstukas December 07, 2014, 09:13:23 PM
If you want the image to be displayable you have to use the IMAGE upload...
But I did use the IMAGE upload and those files still went to the file list.
Edit: ok, I may have used the wrong feature, but I was certain I used the image upload. Anyway, now I see that you cannot multiselect images as you can with files. Why?
: Re: I heard you wanted a upload script upgrade?
: ande December 07, 2014, 11:13:18 PM
Anyway, now I see that you cannot multiselect images as you can with files. Why?

I have no good answer for that :P Guess the multi select feature was added later but only the the file upload page? Perhaps ill fix it some time.
: Re: I heard you wanted a upload script upgrade?
: Kulverstukas December 08, 2014, 07:37:14 AM
All you have to do is add multiple="multiple" into the input field.
: Re: I heard you wanted a upload script upgrade?
: ande December 08, 2014, 12:18:53 PM
All you have to do is add multiple="multiple" into the input field.

And the files will magically appear on the server? Dude..