upload

General advice needed - How to implement record file attachments in ASP.NET?

I have an application which will have approximately 25,000 records when the initial data import is complete. These records will each have 1-3 associated 'file attachments' (.doc, .pdf, etc). Can anyone give me advice on how to implement this functionality? Specifically, where would you store the files and how would you organize them? ...

Avoid multipart/form-data for file transfert

I wrote a light http server in C which can handle simple requests. So I totally control the server side and its future evolution. Now on my Web Application written in Javascript/ExtJS, I need to upload a file on my server. Am I forced to use multipart/form-data to upload a file? Is it bad to directly send the file binary contained in a...

upload file with Python Mechanize

When I run the following script: from mechanize import Browser br = Browser() br.open(url) br.select_form(name="edit_form") br['file'] = 'file.txt' br.submit() I get: ValueError: value attribute is readonly And I still get the same error when I add: br.form.set_all_readonly(False) So, how can I use Python Mechanize to interact wit...

SWFUpload able to load the browsing window when clicked but unable to reach the upload page

Hello I have a problem of using swfupload to upload the image to the aspx page. I can open the browsing window to select the file to upload but unable to reach to upload page. This is my javascript code that initializing the swfupload var swfu; window.onload = function() { var settings = { file_size_limit...

Save a file using a model and non-model-based Form in Django

I have a model with a FileField and a form that has a FileField as well. The form is not a ModelForm based on the model but it's a regular Form. How do I save the uploaded file from the form to the model? ...

classic asp image upload with flex

Is there a way to upload an image using flex inbuild .browse() and classic asp? So in flex the user picks the image they want to upload, press a button to start sending it. A asp handler then gets the file, uploads it to a folder and then writes the filename in a database. Writing of the filename in the database is no problem. ...

[JAVA] Upload and POST file to PHP page

Hello I need a way to upload a file and POST it into php page... My php page is: <?php $maxsize = 10485760; $array_estensioni_ammesse=array('.tmp'); $uploaddir = 'uploads/'; if (is_uploaded_file($_FILES['file']['tmp_name'])) { if($_FILES['file']['size'] <= $maxsize) { $estensione = strtolower(substr($_FILES['file']['name...

Many files upload in ImageField form - django problem

Hi! My problem is simple. I have template like this: <form enctype="multipart/form-data" action="{% url offers.views.add_offer %}" method="post"> <input type="file" name="image1" /> <input type="file" name="image2" /> <input type="submit" value="Add" /> </form> Model looks like that: class Image(models.Model): ...

Calculate progress bar percentage

I am building a file upload progress bar. Currently I have an upload form which returns the current amount of uploaded data. So, it starts at zero, and returns the current size in bits, but I have converted that to bytes. If I can get the total file size before I upload, and can get the current amount uploaded, and return this dynamic...

Temporary image upload script ?

Hey guys! i just want to know if you know any free image upload script where you upload your images temporary. I need the image files to be deleted over time. ...

mysql restore for files on another server

Hi, I have a test database on a separate remote server than my production DB. Every once in awhile, I want to try and test things by uploading a copy of my production DB to my testing DB. Unfortunately, the backup file is now half a gig and I'm having trouble transferring it via FTP or SSH. Is there an easy way that I can use the mys...

[Iphone] FBConnect : send some images on somebody's wall

Hello I found out how to send some text on the user's wall, with the FBConnect API, on iphone. I even found how to put an image already on the internet : FBFeedDialog* dialog = [[[FBFeedDialog alloc] init] autorelease]; dialog.delegate = self; dialog.templateBundleId = 12345; dialog.templateData = @"{\"image\":[{\"src\":\"http://sample...

Type code in to a text input form, how?

Hello! i have this image upload script. <?php if(isset($_POST['submit'])){ if (isset ($_FILES['new_image'])){ $imagename = $_FILES['new_image']['name']; $source = $_FILES['new_image']['tmp_name']; $target = "temporary_images/".$imagename; move_uploaded_file($sour...

Error messages show up in the pop-up window, how to fix?

Hello! I have this signature generator script. And when the images you upload does not meet the requirements the user recieves an error message. The problem here is that the error message shows up in the uploading pop-up, is there any way to show the error messages in the original page instead? Here is my signature generator script. ht...

Upload a file referenced via URL

I have url that point to image for example : http://cg009.k12.sd.us/images/smilefacemoving.gif instead of user will insert file i want to bind this file(image) to the c# fileupload control . so the fileupload object will hold this file(image). ...

Javascript problem solved, don't understand what the problem was.

In the HTML head section: <script type="text/javascript" src="Scripts/editScripts.js"></script> Just above the </body> tag(closing tag, bottom of the html page). Also: this is the old code, this is how it was when it was not working: <script type="text/javascript">if(document.getElementById)initialize();loadEvents();</script> <...

Uploading to a Remote Server

Hello all, I am working on a website, using PHP/MySQL, where users can upload videos, then, those videos are converted (using FFMPEG) to FLV and MP4 files. Now, the whole 'upload' and 'conversion' process takes place on a different (remote) server that is actually being hosted by a different provider. The reason I am using a differen...

Drupal6: Mass Image Upload?

I have a solid image gallery going, using CCK, Views, and Imagecache. However, this currently requires users to upload images one at a time, which is unacceptably tedious for most people. What is the best way to implement mass image upload on Drupal? ...

PHP ssh2_scp_send sometimes fails

Hi, I'm using ssh2_scp_send to send one file from server1 to server2. It works almost 80% of the times, but sometimes fails and I can't find any log message and i don't know why! the command only return one bool value saying if it was sucessfull. ssh2_scp_send Where can I find some log message or any of you had one similar problem? ...

Best flash upload widget

I'm looking to upgrade the upload function of a web app of mine from a fairly simple PHP + javascript uploader to a flash uploader. I've been looking into swfupload from swfupload.org. I'm wondering if anyone has any experience with that library, or if someone can recommend a good pre-built flash upload widget. I don't mind if it req...