Questions tagged [network-file-transfer]

Questions relating to the copying of files from one filesystem, over a network, to a destination filesystem

Filter by
Sorted by
Tagged with
4
votes
1answer
68 views

Simple shell script to backup to Amazon over iSCSI

The script works but I know that it can be improved. Please note that my scripting skills are very basic :) (as it can be seen in my Frankenstein script – I took bits and pieces of the code from ...
2
votes
1answer
2k views

Profile picture upload method in Laravel 5.2

I am a Laravel newbie so please forgive me for my code... I have a method, in a Laravel controller, that updates the current logged user profile (...
3
votes
1answer
153 views

Image downloader class

I'm a novice regarding both C++ and Qt. This class is used in my project to get an image from a web service. If a new call to StartDownload is made before the ...
3
votes
1answer
6k views

Downloading big PDF files

I am trying to optimize my code when downloading around 50 pdf files from a website. All of the pdf are big in size (average 25mb). Is there any way to optimize further to download the pdf faster? <...
5
votes
2answers
178 views

Bash script to download sequentially numbered images

This is a pretty basic bash script (3.2 on Mac). I am downloading 584 images from a site in order to create an album. ...
6
votes
1answer
285 views

Java batch movie downloader

The idea is to batch download a list of movies (torrents) off a torrent site and add them to your server. I have a little bit of Java experience (sophomore in college), so I'm looking for things that ...
1
vote
1answer
2k views

CakePHP image upload component

I would like to know how I can improve this CakePHP 3.0 Component (inside folder controller) 1st: to use external libs (stored on vendor folder) I'm using the <...
3
votes
0answers
437 views

Algorithm for downloading images

I am working on a product application where user could sell/buy. This application is based on collection view. Collection view has collection cell where it displays product image thumbnail. The ...
6
votes
1answer
1k views

Multiple file upload class

I've written this a few days back, which is not too big. Do you see anywhere I can improve my logic? ...
6
votes
2answers
1k views

Servlet file uploader

I think this code looks ugly, especially with the multiple try-catch blocks, but I don't know how to rewrite it: ...
2
votes
1answer
4k views

Chunked file upload

I'm working on an PHP application that will allow (but not require) chunked file upload (from jQuery File Upload on the front side). I tried to find appropriate code and was only able to find the ...
1
vote
0answers
232 views

File-sharing with sockets

I'm trying to get some confidence with RXJS and FRP. This code handles file sharing via socket.io. I need some advice about general RXJS style and reactive programming. ...
1
vote
1answer
591 views

Resumable HTTP download class - Follow-up

Is there a better way to calculate the download speed than what I'm currently doing now? Are there any suggestions on improving the updated code? Pure version: ...
9
votes
5answers
4k views

Resumable HTTP download class

Any suggestions, corrections and advice would be very nice and much appreciated. ...
6
votes
1answer
15k views

Downloading all files in a FTP folder and then deleting them

I've created two methods in a class that allow me to download the contents of an FTP folder and if specified then delete them. Although the code operates as intended I think it's vastly bloated and I'...
1
vote
1answer
99 views

Taking and saving pictures using promises

I have the following 4 functions that work, however, I am sure that utilising promises will improve my code. I just find them so confusing. ...
8
votes
3answers
14k views

Sending a file in servlet response, using a class inside a method

I am processing file inside my method - basically preparing it for the download. But I decided to split actions for setting headers and reading bytes. As Java does not support method declaration ...
1
vote
1answer
731 views

Saving an uploaded file and returning form data

I am new to F#. This code is basically a port I did from C#. I am sure there is room for a ton of improvement, so how can I improve and make this more efficient? ...
2
votes
2answers
259 views

Image resizer and uploader

I've written an image resizer / uploader, that takes an incoming image, resizes it, and uploads it to the server, under the /usericons/ folder. However, the code ...
1
vote
0answers
563 views

File transfer using yandex.ru cloud storage

I've made a "envtransfer" application transfer environment between computers using Yandex disk application. I would like to hear the opinion of the code. Big thanks. User authorize, get token, export ...
3
votes
0answers
126 views

Ajax file uploader jQuery plugin

I tried to write my first jQuery plugin. It's a very simple Ajax file uploader. I would appreciate a review of this code. HTML ...
3
votes
1answer
377 views

Servlet responses to upload/download requests

My task is to write a program to store files in object store. One of the subtasks requires to send json or xml format response to the file uploader/downloader as requested by client. The following ...
7
votes
1answer
5k views

Download a file from given URL and retry on connection errors

I wrote a script for Python 2.78 which is supposed to download and save a file from a given URL using the requests library. In case that a connection to the server can be established and a valid ...
2
votes
1answer
3k views

Image upload handler with random filename generator and postprocessing

I have a function to handle image uploads. Originally, it contained a goto: ...
5
votes
1answer
2k views

Checking file size and sending it to the server

I am currently working on a crash log sender. As the application crashes, the FindLogFiles() will search for the different crash logs we are maintaining. It will ...
5
votes
2answers
325 views

Image download handler app

I have a paid app on the app engine. At the moment, usually there is only one instance. The app has a download handler that sends an image after re-sizing it if it is too big. The problem is: if a web ...
4
votes
2answers
5k views

Bash CGI Upload File

I'm using the following Bash CGI to upload a file: ...
3
votes
1answer
203 views

Check secure image upload

I want to upload images to server from browser window. I'm using this function for image upload. Images are uploaded by GD library. What is your opinion of this code? Is there still a way to upload a ...
3
votes
1answer
912 views

Securing file uploading

I'm working on this snippet of code within a PHP file. The upload function is working but I suspect it is not secure. I move all the files into an upload folder within the site folder. I think that ...
2
votes
2answers
3k views

Uploading a file using Net::SFTP

I have a method to upload a file using the Net::SFTP gem: ...
2
votes
1answer
626 views

Uploading multiple images using PHP

I literally spend all day working on PHP and I think I figured it out, but I need some reviews in order to make my code secure & okay. I am asking you about functionality here. The code below ...
13
votes
1answer
2k views

Object-oriented file upload handler for a CMS

I've started with a bunch of functions, made the code work, then I spent a day rewriting it in an OO way, as much as I can. I've tried to group up the task into objects, letting the relative data go ...
4
votes
1answer
730 views

Check if an image download from the Internet has already started

In the method getView() in my implementation of ArrayAdapter I have to download image from Internet using the image's ...
2
votes
1answer
1k views

Command line multipart file downloader using requests

The code below downloads file in multiple chunks if split is set to some number, however there is a limit to maximum possible splits defined below by maxSplits if ...
6
votes
1answer
2k views

A PowerShell script like one-way rsync but worse

This PowerShell script works a bit like a one-way rsync; it's good enough for my Surface RT needs, anyway. However, seeing as this is my first PS script, and I was ...
17
votes
2answers
20k views

Python Back-Up Script

I wrote this script to backup some important files. It backs up the files to a local folder as well as to an external hard drive. It creates a new subdirectory which has its name constructed with ...
6
votes
1answer
172 views

Copying files as fast as possible

I am running my shell script on machineA which copies the files from machineB and machineC ...
1
vote
2answers
3k views

Secure image upload class

Last night I made this image uploading class. It was the first time I made a file uploader to be used on a real site, so I thought I would share it here and on Github to get some reviews, hoping if I ...
4
votes
1answer
2k views

Sending an XML file to an SFTP site

I have a console application that basically retrieves XML content, writes to the XML file and sends the file to an SFTP site: ...
1
vote
1answer
277 views

File uploader using XMLHttpRequest

I'm making this web application that needs some very simple JavaScript/HTML5 related features integrated (hereby an upload feature). However, I'm not sure about whether I've overdone it, as it's the ...
4
votes
1answer
32k views

Program to transfer files from one server to another in java and also display a progress bar on each file transfer

I have written a java code to transfer files from one server to another using the concept of socket programming. Now, I also want to check for the network connection availability before each file is ...
5
votes
1answer
24k views

Java multithreaded file server and client - emulate TCP over UDP

My task was similar to my last assignment but this time I had to do it with UDP instead of TCP. This basically means I had to emulate TCP over UDP. Multithreading ...
10
votes
1answer
48k views

Java multi-thread file server and client

My task was to build a multi-thread file server and a client that can upload or download a named file over sockets. It is assumed that the client will finish after its operation and there is no need ...
4
votes
1answer
2k views

Automatically backup website files and database

For each of my various websites, I back up the web site files and the associated database for into a single dated compressed archive file (one zip file per website) and download that to my local ...
4
votes
1answer
1k views

Uploading multiple files for faculty nomination system

I created a few forms for faculty members to nominate colleagues for awards. Many of the nominations require documentation to be submitted in order to validate the nomination. I created one form then ...
5
votes
2answers
676 views

Uploading a file to the server

I wrote a simple PHP script which allows the user to upload a file to the server. It works, but I'm not very sure about security. Could you give me some hints about security mistakes? In a nutshell: ...
7
votes
1answer
150 views

Bad code to handle image upload

I'm using this form to submit articles into the database: ...