Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Upload Clipboard Text data to a server
#1
Basically I'm working a small app that lets me upload text from the clipboard to a server. I don't know on how to go on about uploading the code nor do I know what to do to return errors. (It's being written in C#) All help is appreciated.

[Image: 106a7.png]
This is what I basically mean, in the basis of the application.
Do not take life too seriously. You will never get out of it alive.
[Image: UGPjFJa.jpg]
Reply

#2
What do you mean with "to return errors"?
Code:
try
{
// do something
}
catch(exception e)
{
//error happened
}
[Image: MaEIQ.png]
Reply

#3
(04-11-2013, 07:42)Pozzuh Wrote: What do you mean with "to return errors"?
Code:
try
{
// do something
}
catch(exception e)
{
//error happened
}

the specification is MINDBLOWING Troll
Reply

#4
Would've been helpful if someone told me how to make it save on my server.
Do not take life too seriously. You will never get out of it alive.
[Image: UGPjFJa.jpg]
Reply

#5
How do you want it to save ,ftp? One possible solution is to use php, send the string using webclient to a php uri on your webpage which will save it for you and then return the link and then just display the link. Or use FTP and save it through the app
Reply

#6
You can take look to c# networking if you're using dedicated stuff, or try to learn "web uploadto". ( like @archit said )

Edit: You should try mysql stuff. Use SQLite library.
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click
Reply

#7
I was thinking of using PHP and saving it as a text file.
Do not take life too seriously. You will never get out of it alive.
[Image: UGPjFJa.jpg]
Reply

#8
(04-12-2013, 12:36)archit Wrote: One possible solution is to use php, send the string using webclient to a php uri on your webpage which will save it for you and then return the link and then just display the link.

I think send text to a php file to save can be a big security hole...
His project is made of C#, why not use C# FtpWebRequest to upload it?
Reply

#9
Because using FTP is a huge security risk.

If you have no experience with this at all, chances are 0% you actually have a properly configurated anonymous FTP server that allows for this purpose.

Just use PHP/ASP/NodeJS/anything serverside scripty thingy.
Reply

#10
(04-12-2013, 20:50)SuperNovaAO Wrote: Because using FTP is a huge security risk.

If you have no experience with this at all, chances are 0% you actually have a properly configurated anonymous FTP server that allows for this purpose.

Just use PHP/ASP/NodeJS/anything serverside scripty thingy.

Even PHP can be highly vulnerable to crackers and stuff. So try to use some packer or whatever.
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  [Release] Windows 8.1 Fix for MW3 Server Addon master131 16 18,315 09-29-2014, 23:08
Last Post: SuperNovaAO
Brick [Release] MW3 Server Administration Addon iRoNinja 5 9,048 11-10-2013, 15:46
Last Post: Casper
Exclamation Help cmdlist, dvarlist server crash Nerus 17 12,004 11-09-2013, 23:54
Last Post: Nerus
  Our Level Fastfile is Different from the Server. CheeseToast 6 11,369 11-03-2013, 17:52
Last Post: CheeseToast
  Dedicated Server External (public) IP Nerus 3 5,922 11-02-2013, 14:16
Last Post: Casper
  MW3 Server Version superg1973 7 12,819 10-28-2013, 01:15
Last Post: kotyra972
  Getting text from a website JustDoingThisShit 2 2,870 10-21-2013, 08:00
Last Post: JustDoingThisShit
  Storing data in a database shanky 3 3,075 10-16-2013, 01:37
Last Post: yokai134
  Help how to turn off map in dedicated server pero123 8 7,215 10-15-2013, 19:00
Last Post: Nekochan
  Issue with server addon and NAT dimitrifrom31 3 5,115 10-08-2013, 18:11
Last Post: iRoNinja

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.