upload

PHP Upload a CSV file

Hi, I want the following functionality using php I have a csv file. Each file corresponds to a row in my database There is a html form that will allow me to choose the csv file. Then once the form is submitted, I must parse the csv file and insert data into the db accordingly How do I go about doing this ? ...

Client-Side script to upload attachments to the Sharepoint 2007 list

Hello. I have no good script-writing experience. So, I have a list created on MOSS 2007 with about 1000 elements and attachments enabled. I need to attach to each list item file (*.jpg) from a local folder. I doesn't have administrator privileges at MOSS server, only contributor rights Here is my PoSh script: $web = new-Object system...

PHP CSV upload files

hi, I have asked a question regarding updating a csv file's contents to the db @Question Now I want to add this functionality, like my db will contain url to images that are stored on a prespecified folder on the server. The csv files will contain the urls as to where these images reside on the client side. Now when I click an upload ...

Calculate total batch upload transfer percent with limited information

Hi there, I have a system which uploads to a server file by file and displays a progress bar on file upload progress, then underneath a second progress bar which I want to indicate percentage of batch complete across all files queued to upload. Information and algorithms I can work out are: Bytes Sent / Total Bytes To Send = First pro...

How to upload video using titanium mobile iphone.

Hello, I am developing new app. using titanium development for iphone but I have one problem to upload video to my webserver from my iphone app. , I did'nt get code to select vodeo file and code for uploading it at server side(PHP) can any body help me to solve this problem. ...

S3 Backup Memory Usage in Python

I currently use WebFaction for my hosting with the basic package that gives us 80MB of RAM. This is more than adequate for our needs at the moment, apart from our backups. We do our own backups to S3 once a day. The backup process is this: dump the database, tar.gz all the files into one backup named with the correct date of the backup...

php + upload.class + not overwriting the image

Hi, i am trying to upload a file with upload.class and i need to overwrite the file when the user upload a new one. But instead of overwriting, he is putting photo_01, photo_02, etc... The code: $foto = new Upload($_FILES['photo']); $fotot = new Upload($_FILES['photo']); $fotot->image_resize = true; $fot...

Tomcat 5.5, Is there a max upload speed per request?

I am having an issue when uploading files to tomcat. It seems that tomcat (or something else?) will not handle the upload as fast as I can send it. When uploading multiple files concurrently I can max out my local connection upload speed (2.1MB/s). However, when uploading only one file at a time, no matter how small or large the file, t...

ASP.net Associate session with client/request based on ip

In one web page we use a flash upload control but becouse a flash bug in the upload event the session is lost as its posted back with a new session. We have tought of using a table with ip and old session id or a query string with the old session id in order to reassing it in the uploaded event... Knowing the old session id how can i ...

Uploadify with ruby on rails 'bad content body' 500 Internal Server Error

I'm Getting this error in my development log while uploadify is uploading the file and in the view i get an 'IO ERROR' beside filename. /!\ FAILSAFE /!\ Thu Mar 18 11:54:53 -0500 2010 Status: 500 Internal Server Error bad content body /usr/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/utils.rb:351:in `parse_multipart' /usr/li...

even PHP has 'bugs' with IE

This is not a real bug BUT for sure it is not what you would expect. I have this sample code to upload images: if($type=="image/jpg" || $type=="image/jpeg" || $type=="image/pjpeg" || $type=="image/tiff" || $type=="image/gif" || $type=="image/png") { // make upload else echo "Incorrect format ...."; The problem is that if I modify...

Problem with File uplolad in javascript.

I have used javascript to upload more than one file. when user clicks on 'add more' javascript appends new object to older div using innerHTML. Now the problem is if I select a file and then click on "add more" then new file button exist but older selected file removes and two blank file buttons display. I want this old file must be sel...

uploading large xml to WCF REST service -> 400 Bad request

I am trying to upload large xml files to a REST service... I have tried almost all methods specified on stackoverflow on google but I still cant find out where I am going wrong....I cannot upload a file greater than 64 kb!.. I have specified the maxRequestLength : <httpRuntime maxRequestLength="65536"/> and my binding config is as fo...

iPhone:upload photo to MySpace

hi all, i want to upload photo from my iPhone app. to Myspace server. I read the API documentation of MySpace . There are a API to upload photo Upload Photo. but there are no API for get the userId so I can pass it to Photo upload API. Anybody have idea how can i get the UserId. Sorry for stupid question but I am unable to find the UserI...

Instant file sharing between users in PHP

Hi there, Working on a rather complex system in which users can directly exchange files with eachother from the website. However is any of these things possible: EITHER * Have another user download a file which is still being uploaded by another user ( in progress ) OR * Make a user automaticly ( instant ) download a file from anot...

iPhone:Upload photo to flickr

hi all, I am developing a application where i want to load the photo on flickr. i don't want to use the toolkit. I want to use flickr API.I read the API documentation of flickr but there are no API to upload photo on particular account. All API related to Garden not to user account. i simply want to user will supply username and passwor...

upload photo at facebook via iphone

hello i am trying to upload my image from myapplication but not able to do so.... i have tried ASIFormDataRequest *theRequest = [ASIFormDataRequest requestWithURL:url]; NSString *nowTimestamp = [NSString stringWithFormat:@"%f",[[NSDate date] timeIntervalSince1970]]; [theRequest setPostValue:kApiKey forKey:@"api_key"]; [theRequest setP...

In CakePHP, whats the best Image Upload / Resizing component you've used?

Im looking for somthing that can belong to many many models and, hopfully, has all the resizing functionality built in too. Wondering if there's any good suggestions out there, I don't want to pick the wrong one. Or is it just worth building my own? ...

How can I only allow certain filetypes on upload in php?

I'm making a page where the user upload a file. I want an if statement to create an $error variable if the file type is anything other jpg, gif, and pdf. Here's my code: $file_type = $_FILES['foreign_character_upload']['type']; //returns the mimetype if(/*$file_type is anything other than jpg, gif, or pdf*/) { $error_message = 'Only...

upload image during registration in asp.net

I am developing a student registration form in asp.net. there are two tables viz std_registration and gallery(having pic_id and pic_url). During registration, before the click of submit button i want to retrieve pic_id from gallery table and then pass it to the insert query of registration table. image upload is an optional part. if no ...