upload

Automagically Minify CSS and Javascript on Upload

别等时光非礼了梦想. 提交于 2019-12-03 06:18:56
Does anyone know of a good way to automatically run certain file types through a processing script on upload? I'm trying to accomplish automatically minifying CSS and Javascript when I upload them to the server, keeping a nice, human-readable version on the local side while keeping a minified one on the server. I'm currently using WinSCP on Windows, which is scriptable to some degree but might not be scriptable enough. I'd probably need some kind of cobbled-together solution, so don't be afraid to suggest something with duct tape in it; however, I do need to do the minification on my local

How to upload multiple files on Android using the multiple property?

a 夏天 提交于 2019-12-03 05:26:17
I got a, <input type="file" multiple accept="image/*" /> and I want my android users to be able to upload multiple files at a time. Users using nexus-5 report being unable to upload multiple files at a time. I also tried adding capture="camera" to the input but this only auto open the camera and only associate one picture at a time again. This works everywhere except on Android. Is there anything I am missing? I've hit the same brick wall. I've tried a number of mobile browsers and can't find any that work. I found this link that tells you that none of the Android browsers support this: http:/

PHP header not working for Access-Control-Allow-Origin

烈酒焚心 提交于 2019-12-03 05:09:42
问题 I am using the jQuery File Upload plugin by Blueimp to upload images to a server. The problem is, the sending server is admin.example.com , and the receiving server where the images are stored is on www.example.com . Same domain, different subdomain. I followed the instructions here on setting up cross-domain uploads, and everything seems to be correct as far as code, but when I try to upload the images, I get this error: XMLHttpRequest cannot load http://www.example.com/upload/. Origin http:

Amazon S3 upload via Iframes

与世无争的帅哥 提交于 2019-12-03 04:54:01
问题 Sigh, we're back to this. I can easily enough use CORS on any decent enough browser to directly upload files to my AWS S3 bucket. But (it was coming), with IE I have to fall back to Iframes. Easy, set up a hidden Iframe, create a form, set its target to Iframe name/id, submit form. If the upload is successful, the Iframe is redirected to a url I specify and I can access the whatever I need to. But if an error occurs, since the Iframe is now on an AWS domain, I won't have access to the XML

What is the MIME type for TTF files?

独自空忆成欢 提交于 2019-12-03 04:15:08
I can't find correct MIME type for TrueType fonts. I need it because I'm using File Uploading Class (CodeIgniter) to upload files, and I want to allow only TTF to be uploaded. Tried this: 'ttf' => 'font/ttf' 'ttf' => 'font/truetype' With no success. Any ideas ? TTF does not have a MIME type assigned. You'll have to use the more general application/octet-stream , which is used to indicate binary data with no assigned MIME type. I've seen font/ttf and application/x-font-ttf used as MIME types for TTF. But if your files are being uploaded as application/octet-stream and you don't want to simply

PhoneGap upload Image to server on form submit

≡放荡痞女 提交于 2019-12-03 03:57:02
问题 I am facing problem here as in phonegap image is uploaded to the server once u select a picture.I don't want to upload image before submitting form. Image is uploaded automatically to server which is something i don't want.I want to upload image with the form, where form contains many more fields which is required to send along with image. What are the possible ways to submit with form? <!DOCTYPE HTML > <html> <head> <title>Registration Form</title> <script type="text/javascript" charset="utf

Getting a video from S3 and Uploading to YouTube in PHP

旧巷老猫 提交于 2019-12-03 03:31:36
I have some code working that uploads a video file up to YouTube: $yt = new Zend_Gdata_YouTube($httpClient); // create a new VideoEntry object $myVideoEntry = new Zend_Gdata_YouTube_VideoEntry(); // create a new Zend_Gdata_App_MediaFileSource object $filesource = $yt->newMediaFileSource('file.mov'); $filesource->setContentType('video/quicktime'); // set slug header $filesource->setSlug('file.mov'); I have videos in S3 and I want to upload them to YouTube. The video in our S3 account is public, so i can use a command like wget. Should I run a command that wgets the video file and downloads it

Big files uploading (WebException: The connection was closed unexpectedly)

自古美人都是妖i 提交于 2019-12-03 03:29:50
UPDATED See post #3 below. There is a need to upload a file to the web automatically (without browser). Host - Mini File Host v1.2 (if this does matter). Didn't find specific api in documentation, so at first i sniffed browser requests in Firebug as follows : Params : do Value : verify POST /upload.php?do=verify HTTP/1.1 Host: webfile.ukrwest.net User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; ru; rv:1.9.0.8) Gecko/2009032609 Firefox/3.0.8 (.NET CLR 4.0.20506) Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: ru,en-us;q=0.7,en;q=0.3 Accept-Encoding:

Upload a video file by chunks

做~自己de王妃 提交于 2019-12-03 03:20:19
Yes, it's a long question with a lot of detail... So, my question is: How can I stream an upload to Vimeo in segments? For anyone wanting to copy and debug on their own machine: Here are the things you need: My code here . Include the Scribe library found here Have a valid video file (mp4) which is at least greater than 10 MB and put it in the directory C:\test.mp4 or change that code to point wherever yours is. That's it! Thanks for helping me out! Big update: I've left a working API Key and Secret for Vimeo in the code here . So as long as you have a Vimeo account, all the code should work

Upload file to SFTP using PowerShell

匆匆过客 提交于 2019-12-03 03:13:42
问题 We were asked to set up an automated upload from one of our servers to an SFTP site. There will be a file that is exported from a database to a filer every Monday morning and they want the file to be uploaded to SFTP on Tuesday. The current authentication method we are using is username and password (I believe there was an option to have key file as well but username/password option was chosen). The way I am envisioning this is to have a script sitting on a server that will be triggered by