uploadify

Uploadify: show error message from HTTP response

[亡魂溺海] 提交于 2019-12-17 07:30:27
问题 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

django+uploadify - don't working

白昼怎懂夜的黑 提交于 2019-12-14 03:21:24
问题 I'm trying to use an example posted on the "github" the link is http://github.com/tstone/django-uploadify. And I'm having trouble getting work. can you help me? I followed step by step, but does not work. Accessing the "URL" / upload / the only thing is that returns "True" part of settings.py import os PROJECT_ROOT_PATH = os.path.dirname(os.path.abspath(__file__)) MEDIA_ROOT = os.path.join(PROJECT_ROOT_PATH, 'media') TEMPLATE_DIRS = ( os.path.join(PROJECT_ROOT_PATH, 'templates')) urls.py from

Uploadify Rails 3.0 - Nothing happens after file is chosen

纵然是瞬间 提交于 2019-12-13 05:25:17
问题 I am trying to get uploadify to work with rails 3 but with little success. I have pretty much read everything there is to read about this, and tried pretty much everything, but nothing seems to work. Heres my javascript/jquery.....with the form field. <script type="text/javascript"> $(document).ready(function() { $('#video_upload').click(function(event){ event.preventDefault(); }); $('#video_upload').uploadify({ 'uploader' : '/javascripts/uploadify/uploadify.swf', 'script' : '/videos/create',

Get Width of Uploaded image when upload complete using UPLOADIFY Plugin

柔情痞子 提交于 2019-12-13 02:16:58
问题 I want to get the width of an image when upload complete in uploadify and then make make the proportion correct with the previous one before upload FOCUS: get the WIDTH of the uploaded image 回答1: //when all files finished uploading 'onAllComplete' : function(event,data) { alert("action"); } //when a file gets uploaded 'onComplete' : function(event, ID, fileObj, response, data) { alert('There are ' + data.fileCount + ' files remaining in the queue.'); } try $("#imgID").css("width"); or $("

Uploadify file uploading

末鹿安然 提交于 2019-12-13 00:06:17
问题 i am trying to use uploadify, to upload pdf or txt files, but without success. Uploadify 2.1.4 uploads just image files. I tried to just rename file extensions, tried to allow . , tried to namely allow pdf or other formats, but Uploadify uploads just F******g images and i do not know why... Please help me. I use these settings: public function show() { if(!$this->dir) throw new exception("Upload dir is not set"); if(!$this->url) throw new exception("Upload url is not set"); $rem=(isset($_POST

Session data is losing with Flash

浪尽此生 提交于 2019-12-12 22:16:09
问题 I'm using Flash uploader(uploadify, swfupload) with CodeIgniter, want to get the session data. I have found out that the flash does not send the session data, so I have set $config['sess_match_useragent'] = FALSE; Now for example i have set session value myname in session and I can get it on my backend PHP script using Internet Explorer . : Array ( [session_id] => f4l82aa3f82rd4b2ed682e0e132d7a72 [ip_address] => 127.0.0.1 [user_agent] => Shockwave Flash [last_activity] => 1310546544 [myname]

dwz uploadify在firefox下报http 302

穿精又带淫゛_ 提交于 2019-12-12 11:00:08
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 做后台管理系统,用了dwz作为界面,有使用到uploadify作为上传图片的工具,uploadify在IE,谷歌浏览器下都能正常使用,只有在火狐浏览器中使用报http 302 的错误,后来也是百度,谷歌了很久,大概的了解到firefox下flash ( uploadify使用flash上传)会重新发起session会话,导致报错,后来手动得添加sessionid(";"之后)后就能成功上传。 script="${path }/shangchuan/tupian/TP001;jsessionid=<%=session.getId() %> 来源: oschina 链接: https://my.oschina.net/u/734068/blog/158579

How can I check whether session variables are getting passed to uploadify.php?

夙愿已清 提交于 2019-12-12 06:25:03
问题 I am having some difficulty with the workaround method in uploadify (v3.1) for passing session data via the formData option. I have implemented the suggestion on this page, but I am getting an HTTP 500 Error. I am wondering how to check what is in my session, to see if the workaround is really working, i.e. if my session ID is really getting passed to uploadify.php. The usual method for returning variables echoed in uploadify.php is the onUploadSuccess event, but I can't use this, as uploads

Can't submit after preventDefault

本小妞迷上赌 提交于 2019-12-12 05:05:38
问题 I use a script for form validation (validationEngine) and a script for file upload (uploadify). To best manage my form submission: validationEngine detects if my form can be sent. If I can submit, I upload my files Once all my uploaded files ( onQueueComplete uploadify), I submit my form. If I make an alert('foo'); in my onQueueComplete, it works. But if I submit my selector.submit() ... nothing happens. $(function() { $('#file_upload').uploadify({ 'fileSizeLimit' : '2048KB', 'auto': false,

Uploadify using multiple files, one mvc controller call

自作多情 提交于 2019-12-12 03:38:27
问题 From all I have read in Stackoverflow and Google, it seems that once again I am forced to work around IE. Since it doesn't support multi, I am forced to use Uploadify or some other 3rd party pluggin. Thanks Microsoft.. I want to verify that there is no way to automatically batch multi-select files into one MVC controller call using Uploadify. I think there are ways whereby a user can add files, then press a button to upload the files, but is this it??? What pluggin will allow a user to select