Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Extra libraries, Code snippets, applications etc. » Applications created with U++ » Skylark uploaders (A tiny website for uploading and downloading file)
Skylark uploaders [message #57563] Sat, 25 September 2021 21:51 Go to next message
Xemuth is currently offline  Xemuth
Messages: 387
Registered: August 2018
Location: France
Senior Member
Hello, A long time ago I worked with skylark and did for fun a file uploader/donwloader. Since it show some skylark possibilities and fit perfectly well with UppHUB, I have uploaded a "polished" version available here : Skylark Uploaders

The code have been made a long time ago and really quickly so don't be rude Very Happy, IMO the project is good on demonstrating skylark possibilities.
However, to make the whole website work I had to twick Skylark package with one modification that I ask for here : Skylark update GetIdentity()

@Mirek, if you are OK with the modification to skylark and are interested on adding this app to UppHub then tell me I will do the pull request for both things.

For simplicity I will just past the readme here to present the application :

Skylark uploaders is a free C++ program that will create a website allowing to upload / download files. It require Ultimate++ to be compiled.

https://i.imgur.com/hs2VVLF.png

At first launch, the program will require you to create the master user :

https://i.imgur.com/crcGPNX.png

The default port of the website is 7979 (of course it can be changed via modifying the code):

https://i.imgur.com/TiwykeL.png

the first page you will stand at is the authentication page:

https://i.imgur.com/B6n80Ix.png

When master user is connected. It can create new users. every users can delete or upload files. Sometime you would like to share file without create account for users to connect. To do it so then you can simply click the link button near the file you want to share to create a public link to this file :

https://i.imgur.com/fDL1Nk8.png

The generated link will be shown under the file row :

https://i.imgur.com/fl4KJf3.png

This link is public and can be share. The max downloads value will ensure the link will no longer be available after a certain amount of downloading (here 4).

Known problem :

-On tiny system like raspberry, huge file will make the program crash when someone try to download them (upload is working fine as long you got the necessary space) .

-if file have non ascii characters in is name then the application wont be able to delete it.
Re: Skylark uploaders [message #57567 is a reply to message #57563] Sun, 26 September 2021 10:41 Go to previous messageGo to next message
jjacksonRIAB is currently offline  jjacksonRIAB
Messages: 225
Registered: June 2011
Experienced Member
Nicely done. I've done a couple of example sites with skylark, mostly imageboards and small versions of reddit-like sites, but not for production use. It would be cool if one day we could dogfood the whole thing with ultimatepp.org.
Re: Skylark uploaders [message #57617 is a reply to message #57563] Sun, 10 October 2021 03:06 Go to previous messageGo to next message
Lance is currently offline  Lance
Messages: 633
Registered: March 2007
Contributor
Thanks for sharing. I am able to compile and run it on Windows. Somehow the uploading wasn't successful. Maybe it's because you are using a forked Skylark, maybe I haven't create the folder for uploaded file.

For linux system(unbutu), the behavior of Skylark is different from on Windows in that no terminal window for stdin/stdout is opened. Because of this behavior, your initizalization which requires input of master user name and password on server side at initial run will hold the server from going to listening stage indefinitely. You may want to instead allow user to create master user name and password on the client side if the user table is still empty.

[Updated on: Sun, 10 October 2021 03:14]

Report message to a moderator

Re: Skylark uploaders [message #58083 is a reply to message #57617] Thu, 10 February 2022 09:21 Go to previous messageGo to next message
Xemuth is currently offline  Xemuth
Messages: 387
Registered: August 2018
Location: France
Senior Member
Hello Lance,

Quote:
Somehow the uploading wasn't successful. Maybe it's because you are using a forked Skylark

Indeed I use a forked skylark which can handle file sending via stream and alternative way of managing authentication.
I did a pull request few month ago to add thoses features to the retail skylark.

Quote:
For linux system(unbutu), the behavior of Skylark is different from on Windows in that no terminal window for stdin/stdout is opened

Tbh, I'm bit supprised for this.
Skylark uploaders is currently running in one of my raspberry Pi and I did not had this problem. have you try to launch it via terminal ?
I could improve the package by adding somes input box for the first users instead of terminal only
Re: Skylark uploaders [message #58084 is a reply to message #58083] Thu, 10 February 2022 16:29 Go to previous message
Lance is currently offline  Lance
Messages: 633
Registered: March 2007
Contributor
Xemuth:

It's just that I am not very familiar with Linux as a whole. Running from a terminal is fine.

Thanks,
Lance
Previous Topic: Visual Studio Map File Browser
Next Topic: Bobcat, a cross-platform terminal emulator
Goto Forum:
  


Current Time: Sat Dec 14 13:54:34 CET 2024

Total time taken to generate the page: 0.01847 seconds