upload

VS 2005 Can not open DataSet Schema in Designer mode

Hi I cannot view DataSet file in designer mode in VS 2005. When I try to it another solution it is ok but in one of my project solution I cant. The projects are c# class library projects in a solution file. Is there any suggestion? Thanks for your help. ...

Java Applet Permissions

I've put together a basic applet where the user selects a file from their hard drive, it reads the first line of this file and passes that off to JavaScript for some additional preprocessing, and then when you click a button it tries to upload that file through an HTTP POST request. I found a very basic open source applet for uploading f...

File Upload over HTTPS - Desktop to WebServer

I have a desktop application that needs to upload files to a webserver. The protocol is HTTPS. I'm thinking I should write an ashx that will handle the uploads; sending 4k chunks at a time. With a response of ok each time. Is this a good algorithm? What is the best algorithm for uploading from a desktop application to a webserver ove...

How to debug a file upload?

I'm trying to upload a PDF file to a website using Hot Banana's content management system using a Python script. I've successfully logged into the site and can log out, but I can't seem to get file uploads to work. The file upload is part of a large complicated web form that submits the form data and PDF file though a POST. Using Fi...

How do I upload a file with mod_python?

I want to create a simple file upload form and I must be completely incapable. I've read docs and tutorials,but for some reason, I'm not getting the submitted form data. I wrote the smallest amount of code I could to test and it still isn't working. Any ideas what's wrong? def index(): html = ''' <html> <body> <form ...

Upload file to SQL database using classic ASP

I am trying to upload files (.doc/.pdf) to a SQL database (2005) but I am really struggling to find any step by step guides. This is what happens on my ASP form: User selects a document Document is currently upload to a temp file and sent to a email address However it also needs to be stored within a database field. I have set the ...

Building PHP uploader for gif/jpg/png/pdf/doc, wmv files, feasible, or should I buy something?

I've got a Mac server and I'm building PHP code to allow users to upload images, documents, and even video files. Researching this has definitely gotten me nervous, I want the uploaded content to be virus free. Is building something myself going to be a huge challenge? Would you do it, or would you find some OS or OTS product? (And do ...

Upload progress using pure PHP/AJAX?

I'm sure this has been asked before, but as I can't seem to find a good answer, here I am, asking... again. :) Is there any way, using only a mixture of HTML, JavaScript/AJAX, and PHP, to report the actual progress of a file upload? In reply to anyone suggesting SWFUpload or similar: I know all about it. Been down that road. I'm looki...

Scan PHP uploads for viruses

I'm currently using the following code to scan files that have been uploaded as part of an application form: $safe_path = escapeshellarg($dir . $file); $command = '/usr/bin/clamscan --stdout ' . $safe_path; $out = ''; $int = -1; exec($command, $out, $int); if ($int == 0) { // all good; } else { // VIRUS!; } It works, but is s...

uploading a realtime database into the web

Hi everyone I hav a small problem in uploading my database. I have created a localhost website on my pc for a vehicle tracking system and now i have no clue in uploading it. Its got two microsost access databases in my pc which is used in the website and they get updated at very regular intervals(almost every second) it has to be uploade...

Ruby on Rails ActiveRecord conditional validation (and more..)

I have a Product model which validates multiple attributes (including a Paperclip image attachment) like so: validates_presence_of :name validates_format_of :name, :with => /^([a-zA-Z0-9\ \-]{3,128})$/i ... has_attached_file :image validates_attachment_presence :image validates_attachment_content_type :image, :content_type => ["image/j...

How do I bulk upload to s3?

I recently refactored some of my code to stuff rows into a db using 'load data' and it works great -- however for each record I have I must upload 2 files to s3 -- this totally destroys the magnificent speed upgrade that I was obtaining. Whereas I was able to process 600+ of these documents/second they are now trickling in at 1/second be...

Transfer images to server using PHP

I have some pictures that are online, the images are simple http://domain.com/pic.jpg for example; there's an upload feature but that's for user upload the user won't upload, it's an auto upload. This mean I have the Urls on an array and I want that php auto upload those Urls photo into the server Any help!! Thanks ...

Uploading files past Asp.net request length limit?

I searched SO and found this question, but it's not quite what I'm asking. I'm wondering if a IHttpModule can be created that can inspect the ContentLength of the request, and if so either redirect or somehow throw that request out and create a new one. Specifically, I'm trying to handle image file uploads, but I'd like to have the ...

Show Images with name containing special characters

Hi, I am trying to display some images containing special characters like ☻ ☺ ♥ or Chinese or Arabic characters in their names using jsp...but the images are not getting displayed !! <img src = "pipo².jpg" /> <img src = "pip☺☻♥o².jpg" /> What am I doing wrong !! ...

Problem with python curl while submitting file

#!/usr/bin/python import pycurl import re import StringIO #CONSTANTS URL = "http://www.imagehost.org" FILE = "/datos/poop1.jpg" POST_DATA = [("a", "upload"), ("file[]", (pycurl.FORM_FILE, FILE))] buffer = StringIO.StringIO() c = pycurl.Curl() c.setopt( c.URL, URL ) c.setopt( c.POST, 1 ) c.setopt( c.POSTFIELDS, POST_DATA ) ##c.seto...

Using MultipartPostHandler to POST form-data with Python

Problem: When POSTing data with Python's urllib2, all data is URL encoded and sent as Content-Type: application/x-www-form-urlencoded. When uploading files, the Content-Type should instead be set to multipart/form-data and the contents be MIME encoded. A discussion of this problem is here: http://code.activestate.com/recipes/146306/ To...

Flash FileReference Upload to ASP.NET MVC

I am using a Flash/Flex uploading component in my ASP.NET MVC application. My action has a HttpPostedFileBase parameter. My action is called but my HttpPostedFileBase is passed in as null. Any ideas why it would come back null? Edit -- I believe this is on the MVC side. ...

Trying to upload a non-existent file in Internet Explorer, form is not submitted

I have a form with an input type=file. Internet Explorer lets the user type anything they want into that input (whereas Firefox brings up a file chooser). If the user enters a blatantly invalid name, for example: a and tries to submit the form, Internet Explorer does not even try to submit the form. Is there any way for me to know t...

Drag and Drop files into a SharePoint webpart to upload into DocLibrary

Is it possible to create a SharePoint (wss3 or MOSS 2007) webpart, to allow files to be dragged and dropped onto it, which would then upload the files into a predefined document library ? I imagine that this would require some form of client side scripting (Ajax ?), but my knowledge in ajax is a bit sketchy. From my exploration so far...