uploadify

Uploadify (flash file upload) & Integrated Windows Authentication

戏子无情 提交于 2019-12-23 11:49:21
问题 I'm running into an issue with Uploadify and I hope someone can help. I have put Uploadify into my app and all works fine in dev (using the VS web server). All worked fine and checked until I deployed the app into my test environment which uses Integrated Windows Authentication. When I actually go to upload the file, the browser brings up a login prompt. At this point, even if you type in the correct username and password, the request seems not to complete and even if you tell the browser to

web 文件上传的几种方式

岁酱吖の 提交于 2019-12-22 04:20:17
问题 文件上传在WEB开发中应用很广泛。 文件上传是指将本地图片、视频、音频等文件上传到服务器上,可以供其他用户浏览或下载的过程。 以下总结了常见的文件(图片)上传的方式和要点处理。 表单上传 这是传统的form表单上传,使用form表单的input[type=”file”]控件,可以打开系统的文件选择对话框,从而达到选择文件并上传的目的,它的好处是多浏览器兼容,它是web开发者最常用的一种文件上传方式。 表单的代码如下: <form method="post" action="http://uploadUrl" enctype="multipart/form-data"> <input name="file" type="file" accept="image/gif,image.jpg" /> <input name="token" type="hidden" /> <input type="submit" value="提交" /> </form> 以下是表单上传几个关键点: method="post" : 采用post方式提交数据 enctype="multipart/form- data" :采用multipart格式上传文件,此时request头会显示 Content-Type:multipart/form-data; boundary=—

jquery plugin 'uploadify' - Way to return a response from upload script?

十年热恋 提交于 2019-12-21 16:33:20
问题 My header code: $(document).ready(function() { $('#sampleFile').uploadify({ 'uploader': 'include/uploadify/uploadify.swf', 'script': 'add_list.php', 'scriptData': {'mode': 'upload'}, 'fileDataName': 'sampleFile', 'folder': '/work/avais/bizlists/lists', 'cancelImg': 'include/uploadify/cancel.png', 'queueID': 'sampleQueue' }); }); AFAIK all I can do in the "add_list.php" file is finish the upload process off by moving the file to the final dir; I don't think there is any way I can 'return

Uploadify: Dynamic FormData does not change

无人久伴 提交于 2019-12-21 10:18:50
问题 Based on the current uploadify documents, it uses formData (weird all google search results, ppl are using scriptData). The problem is I tried to manually change the formData using setting and onUploadStart event as this uploadify docs said. However the folder always stay the same (/webroot/newsletter) when it reaches the server. It should be (/webroot/newsletter/update), I am testing this way, as the value should be dynamic later on. Any clue what went wrong here? There is another question

Uploadify + Paperclip + Rails nested association before_save

亡梦爱人 提交于 2019-12-20 03:32:14
问题 I need to create a model application form where models can fill it and add pictures to it. I'm following this example with Uploadify, Paperclip and Rails 3 approach. https://github.com/websymphony/Rails3-Paperclip-Uploadify To the pictures, i have an polymorphic Attachment model and i would like to attach those ajax uploaded attachments to the yet unsaved model form and there's is where the tricky part cames. Users are not logged, so there's no "model_id" until is saved. Since i'm showing the

Uploadify error #2038

不羁岁月 提交于 2019-12-19 04:24:19
问题 Whenever I do a test with this script it continually fails at the upload attempt and gives the error IO #2038 The thing I can say for sure is it never even gets to the backend script of 'Upload.ashx' Which that tells me it is a problem is with the script somehow. Now I am doing this with localhost on my test machine. http://www.uploadify.com <head> <title></title> <script src="Scripts/jquery-1.7.1.min.js" type="text/javascript"></script> <script src="Uploadify/jquery.uploadify.v2.1.4.min.js"

Symfony2: upload a file using a file upload plugin

家住魔仙堡 提交于 2019-12-18 18:30:35
问题 I want to upload a text file received via AJAX request in Symfony2 (using Uploadify 2.1.4). How can I process it in an action? I've found some info in the official docs, but I guess it is not what I'm looking for. For instance, I processed such a situation in Zend Framework this way: $adapter = new Zend_File_Transfer_Adapter_Http(); $adapter->setFilters(array( 'Rename' => array( 'target' => sprintf('%s/%d_%s', Zend_Registry::get('config')->uploads->uploadPath, time(), $adapter->getFileName

A file input button for all browsers, is this possible?

主宰稳场 提交于 2019-12-17 10:24:33
问题 Is it possible to use uploadify to allow any user to select a file from the file dialogue and insert it into the file input element of a form? I only need to use uploadify as a way to style the "upload button" as an image. I have tried other approaches here, here and here. All are not compatible with all browsers. What else can I use / do to have my file input element as an image? I would like to have my file input button to look consistent in all browsers. 回答1: I can't remember the source of

Clear text area

﹥>﹥吖頭↗ 提交于 2019-12-17 09:17:07
问题 In Onselect event I have script: $("#vinanghinguyen_images_bbocde").val(''); $("#vinanghinguyen_images_bbocde").val(vinanghinguyen_final_bbcode); I want clear text area id="vinanghinguyen_images_bbocde" before add value to it. but textarea add add add add and value and not clear. I want clear it before add value I use uploadify here is my function <script type = "text/javascript" > $(document).ready(function() { vinanghinguyen_bbcode = ''; vinanghinguyen_final_bbcode = ''; vinanghinguyen_link

Uploadify: show error message from HTTP response

狂风中的少年 提交于 2019-12-17 07:30:57
问题 If the server returns an error (HTTP response code != 200) when uploading a file with Uploadify, the uploaded file gets a red background and a message is show like this: file.jpg (52.78KB) - HTTP Error indicating that there was a HTTP Error. But that's not very useful to the the user. How can I make it show a more detailed error message? Like: 'Not a valid image' or 'Quota full'? I was thinking of passing those messages in the HTTP response body, but Uploadify doesn't pick them up. Is there a