upload

Uploading photos - How can I keep our website safe/stable

拜拜、爱过 提交于 2019-12-06 07:16:44
问题 My website would like users to upload their photos...but how do I keep our server safe from harm? Allowing only JPGs should avoid virus trouble, but what if someone selects a 10Gb file - will that slow the whole website down? We're using Classic ASP and IIS6 (sorry, but that's how it is, can't change that!). Previously we have used a DLL from a company called Persits to handle uploads. However, it would be helpful to other people if we extend this discussion to other languages/technologies

Favicon with Meteor?

我的未来我决定 提交于 2019-12-06 06:31:36
问题 I'm trying to load a favicon into my Meteor project but I can't get it to work. I tried using this tutorial but when I put the mentioned reference in the of my HTML nothing happened. Also what do they mean by /public directory? I don't have a /public directory, should I just put my favicon.ico in the root directory? 回答1: The public directory doesn't exist by default - you just need to create it. Meteor uses the public directory in the root of your app to serve plain files rather than bundling

Uploading image and data as multi part content - windows phone 8

陌路散爱 提交于 2019-12-06 06:29:45
I am unable to upload image and data to web service as multipart content.Here is my code var fileUploadUrl = @"http://myurl"; var client = new HttpClient(); client.DefaultRequestHeaders.TryAddWithoutValidation("Content-Type", "multipart/form-data"); photoStream.Position = 0; // This is the postdata MultipartFormDataContent content = new MultipartFormDataContent(); content.Add(new StreamContent(photoStream), "attendeedImage"); content.Add(new StringContent("12", Encoding.UTF8), "userId"); content.Add(new StringContent("78", Encoding.UTF8), "noOfAttendees"); content.Add(new StringContent(

Upload progress (with or w/o XMLHttpRequest 2) with Javascript

我的未来我决定 提交于 2019-12-06 06:24:38
问题 XMLHttpRequest 2 has a new thing. It can upload files. I got that working (it's super easy). Now I'm wondering if there's a way to get the upload progress of that file. I wouldn't be interested in this normally, but in Google Chrome (8) I saw that the onreadystatechange event is a XMLHttpRequestProgressEvent . Progress... There's nothing in there about upload progress (just request state), but it made me wondering. Google Chrome has a progress 'counter' when uploading big files natively. It's

C# FTP Upload and Download [closed]

自作多情 提交于 2019-12-06 06:02:04
Closed . This question needs details or clarity . It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post . Closed 6 years ago . Is there any refernece to C# that I'm able to upload some files from my computer (where program is running) to my FTP that is somwere else and again to download that files to my other computer (on that other computer I'm running program again.) yakiro Use FtpWebRequest and FtpWebResponse classes. for more information see: http://msdn.microsoft.com/en-us/library/ms229718.aspx Code Upload (Source:

Python app engine: how to save a image?

半腔热情 提交于 2019-12-06 05:19:05
问题 This is what I got from flex 4 file reference upload: self.request = Request: POST /UPLOAD Accept: text/* Cache-Control: no-cache Connection: Keep-Alive Content-Length: 51386 Content-Type: multipart/form-data; boundary=----------ei4cH2gL6ae0ei4ae0gL6GI3KM7ei4 Host: localhost:8080 User-Agent: Shockwave Flash ------------ei4cH2gL6ae0ei4ae0gL6GI3KM7ei4 Content-Disposition: form-data; name="Filename" 36823_117825034935819_100001249682611_118718_676534_n.jpg -----------

linux - watch a directory for new files, then run a script

那年仲夏 提交于 2019-12-06 05:08:00
I want to watch a directory in Ubuntu 14.04, and when a new file is created in this directory, run a script. specifically I have security cameras that upload via FTP captured video when they detect motion. I want to run a script on this FTP server so when new files are created, they get mirrored (uploaded) to a cloud storage service immediately, which is done via a script I've already written. I found iWatch which lets me do this ( http://iwatch.sourceforge.net/index.html ) - the problem I am having is that iwatch immediately kicks off the cloud upload script the instant the file is created in

Upload video and extract thumbnail using Amazon s3

☆樱花仙子☆ 提交于 2019-12-06 05:00:46
i have been working in a video website [platform: php] where i need to upload videos in Amazon S3 server and extract thumbnail. I have created a bucket and uploaded video file successfully in that bucket. But i don't know how to extract the thumbnail from that uploaded video. So, that's where i stuck. Any help will be appreciated. Thanks in advance! Here you've got some options. First - you can "extract" a thumbnail from the video before you upload it to AWS. Something like: upload video to your server, convert it to appropriate format if needed, take a thumbnail (or thumbnails), save them

Upload, resize, and crop center of image with PHP

♀尐吖头ヾ 提交于 2019-12-06 04:49:32
问题 I'm wanting to create a very very basic upload, resize, and crop PHP script. The functionality to this will be identical (last i checked anyway) to the method Twitter uses to upload avatar pictures. I want the script to take any size image, resize the shortest side to 116px, then crop off the top and bottom (or left and right side if it's landscape) as to get a square 116px by 116px. I don't want a bloated PHP script with client side resizing or anything, just a simple PHP resize and crop.

Validate data before uploading through SSIS

家住魔仙堡 提交于 2019-12-06 04:32:23
I have a SSIS package to upload data from Excel file into an Sql Server 2005 table. The excel file will have varied lines of data ranging from 20k - 30k lines. The upload works fine, when all the data are correct. But obviously fails when there is a small problem even in a single row. Examples like mandatory values presented null, inconvertable values (data type mismatch) etc. I want to validate the excel file before the upload and want to tell the user which row and column has got the error... Any idea as to how to accomplish this, without consuming much time and resources. Thanks It might be