Questions tagged [swfupload]

A JavaScript/Flash library for uploading files to a server

SWFUpload is a small JavaScript/Flash library which uploads files to a server via flash and listen all the events from JavaScript

260 questions
48
votes
7 answers

Detect MIME type of uploaded file in Ruby

Is there a bullet proof way to detect MIME type of uploaded file in Ruby or Ruby on Rails? I'm uploading JPEGs and PNGs using SWFupload and content_type is always "application/octet-stream"
Vincent
  • 15,236
  • 18
  • 60
  • 71
20
votes
4 answers

Large File uploading to asp.net MVC

I need a way to upload large files (600 mb to 4 gb) in an asp.net mvc website. Currently I am using swfupload; it works well enough, but it is a huge hit on the webserver because it sends it in one big upload, plus I have to set it in the…
Solmead
  • 3,878
  • 2
  • 22
  • 30
8
votes
3 answers

swfupload not working under IE anymore

http://demo.swfupload.org/v250beta2/simpledemo/index.php doesn't seem to work in IE any more. Is there a fix for this? I get a red cross instead and the 'button' is not clickable. I'm running IE 8.
sean
  • 9,628
  • 8
  • 44
  • 56
6
votes
3 answers

Using Rails with Paperclip and SWFUpload

I have a basic rails application test with a user model that has a photo field handled with paperclip. I created the views to be able to create/edit an user and the photo uploading is working nicely.

Editing user

<% form_for :user, @user,…
pat.mtl
  • 101
  • 2
  • 3
6
votes
4 answers

Other ways to check the file size before upload

Is there any other way that I can just check the size of a file before upload? The requirement is if the file exceeded the limit, the form mustn't submit. If it's not, I have to do the ordinary upload using the form and I don't have to exactly…
jean27
  • 701
  • 8
  • 25
6
votes
5 answers

SWFUpload on HTTPS not working

I have trouble uploading files with SWFUpload when target servlet is listening on HTTPS. On HTTP it works fine. The issue is only when using FireFox or Opera. On IE it works fine - not tried other browsers. EDIT: Error message as provided from…
Drejc
  • 13,466
  • 15
  • 65
  • 101
6
votes
1 answer

SWFUpload startUpload() fails if not called within the file_dialog_complete_handler

I am trying to get SWFUpload to properly upload an image to my server, along with other post data that must come with the image. There is a form to fill up the data so after the user clicks the browse button and selects his image file, the image is…
sboisse
  • 4,152
  • 3
  • 32
  • 41
5
votes
1 answer

Configuring Apache for Large Uploads

I am developing a file uploading service for my company. Our users are often sending us very large .zip files filled with very large illustrator files. Generally the files won't be larger than 1.5GB, but I need to plan on handling files up to…
jwegner
  • 6,063
  • 8
  • 32
  • 55
5
votes
3 answers

Code samples for Django + SWFUpload?

Does anyone have any simple code samples for Django + SWFUpload? I have it working perfectly in my PHP application but Django is giving me headaches.
Mike
  • 6,385
  • 8
  • 51
  • 76
5
votes
4 answers

What is the Rails equivalent to PHP's echo("ok")?

These special instructions for getting SWFupload to work on a mac in safari or firefox are only for PHP. Could some polyglot coders out there, translate this to Rails for me? PHP Version this quote is from here I added echo "OK"; to the end of…
Trip
  • 25,831
  • 41
  • 146
  • 260
5
votes
1 answer

SwfUpload Fallback for clients without Flash

Im currently using the SwfUpload (v2.2.0.1) on my asp.net web application with absolutely no issues. What I would like to do is provide a fall back to a normal upload when the user/client does not have flash installed. I can imagine this could be…
Blowsie
  • 38,136
  • 15
  • 81
  • 108
5
votes
2 answers

SWFUpload is it possible to upload multiple files to a single php script execution

I'm trying to implement SWFUpload into an existing PHP upload funcitonality. My current backend script however expects 2 fiels to be uploaded in a single php script execution. (e.g. it excepts the $_FILES parameters to contain 2 entries). So i'm…
Kwaak
  • 385
  • 5
  • 17
5
votes
7 answers

SWFUpload works in IE, but not in Firefox

Using SWFUpload v2.2, Firefox 3, IE 8, Flash 10 In my ASP.NET application all uploads are being processed by upload.aspx (I have the correct upload_url set in the settings object). In IE 8 the uploads hit the upload.aspx page and are processed, but…
Xolamee
  • 81
  • 1
  • 2
  • 6
5
votes
3 answers

Execute Javascript inside a partial view in ASP.NET MVC

I use this JavaScript code inside the head tag in order to populate the divs with a browse button so that users can upload images (swfupload). ...