uploadify

Silverstripe Uploadify Add fields

醉酒当歌 提交于 2019-11-29 10:20:26
I am looking to attach multiple images to a page in silverstripe (that will act as a rotating gallery eventually) and was wondering if it was possible for a user to add a link for each of these images when uploading each image? Yes. This can be achieved by having a has_many relationship to a custom DataObject which contains an image and a link object in it. In the following example we have a HomePage that has a has_many relationship to Slide . Slide contains an Image and Link . There is some good information on this topic in SilverStripe Lesson 9 - Working with data relationships - $has_many .

Uploadify inside Jquery UI Dialog => Chrome & Opera bugs

我是研究僧i 提交于 2019-11-29 09:44:00
I have the following code: <!DOCTYPE html> <html> <head> <link rel="stylesheet" type="text/css" media="screen" href="jquery-ui-1.8.9.custom.css" /> <script type="text/javascript" src="jquery-1.5.min.js"></script> <script type="text/javascript" src="jquery-ui-1.8.9.custom.min.js"></script> <script type="text/javascript" src="jquery.uploadify.js"></script> </head> <body> <script type="text/javascript"> manualLightboxContent = function () { $("#dialogContent").html($('#module_wrapper').html()); $("#dialogContent").dialog( { 'modal': true } ); } </script> <a href="#" onclick="manualLightboxContent

onComplete and onCompleteAll events failing to fire when using Uploadify

谁说胖子不能爱 提交于 2019-11-29 02:07:37
I have been using uploadify (www.uploadify.com) to upload images to my website, and it works beautifully until you try to expand on it a little. Im trying to get it to remove a queued up file from the list once that file has been uploaded. To do this, you would initialize uploadify as such: $("#fileUpload").uploadify({ 'uploader': '/scripts/uploadify.swf', 'cancelImg': '/images/cancel.png', 'script': '/Album/Manage/', 'fileDesc': 'Image Files', 'fileExt': '*.jpg;*.jpeg;*.gif;*.png', 'multi': true, 'auto': false, 'simUploadLimit': 3, 'scriptData': {'album_id':'7'}, onComplete: function(event,

Uploadify ashx file Context.Session gets null

徘徊边缘 提交于 2019-11-28 19:57:19
I have a file upload in my site which is done using uploadify it uses a ashx page to upload file to database.It works fine in IE but in Mozilla the context.Session is getting null.I have also used IReadOnlySessionState to read session. how can i get session in Mozilla like IE. here is the ashx code i have done public class Upload : IHttpHandler, IReadOnlySessionState { HttpContext context; public void ProcessRequest(HttpContext context) { string UserID = context.Request["UserID"]; context.Response.ContentType = "text/plain"; context.Response.Expires = -1; XmlDocument xDoc = new XmlDocument();

Great uploader like uploadify but with a “no-flash” fallback [closed]

為{幸葍}努か 提交于 2019-11-28 18:21:23
Is there a great uploader script that uses jQuery, like uploadify, but with a fallback option for when flash is not available? I tried FancyUpload , which has this and uses an invisible IFRAME to do its stuff. The problem is, it's built on top of Mootools (conflicts everywhere because I can't change my whole codebase to use jQuery instead of $ if I use jQuery.noConflict(), and I really don't think it's a good idea to mix js libraries like that). http://www.plupload.com/ falls back from HTML5 to Flash, Gears, Silverlight and iFrame. It's developed for TinyMCE, so it's extensively tested and

How can I get the uploaded file details from uploadify after completion

我们两清 提交于 2019-11-28 06:27:09
问题 How should I retrieve the uploaded file details from uploadify after the completion of the upload process. I want to do a process in the uploaded file. But when I use the uploadify it simply uploads the file to a location through the uploadify.php which I customized. I want this uploadify process to redirect to a page after completed with the details of the file such as filename and the targeted location where I will proceed with my second operation on the file uploaded Updates This is what

dynamically setting properties in uploadify

有些话、适合烂在心里 提交于 2019-11-28 05:26:00
问题 is it possible to add a new property to a previously declared object? Here is some code to clarify (with the uploadify jquery plugin): $('#featuredimageupload').uploadify({ 'uploader' : base_url + 'media/js/uploadify.swf', 'script': base_url + 'post/uploadflash', 'multi' : true, 'queueID' : 'queue', 'cancelImg' : base_url + '/media/images/cancel.png', 'fileDesc' : 'Allowed Types: (*.jpg,*.png,*.gif)', 'fileExt' : '*.jpg;*.JPG;*.gif;*.GIF;*.png;*.PNG', 'queueSizeLimit' : 9, 'sizeLimit':

How to read maxAllowedContentLength

大憨熊 提交于 2019-11-28 04:55:55
问题 For my web app i have flash component for uploading files. I would like to handle max file size limit on client side without actual sending that file to server. So i need to read that value from config file somehow to send it to client. Some articles i had found said that reading directly config file is not solution, because it can be changed in whole lot of places. So there should be some API call probably, but i cannot find any... <system.webServer> <security> <requestFiltering>

Silverstripe Uploadify Add fields

萝らか妹 提交于 2019-11-28 03:23:56
问题 I am looking to attach multiple images to a page in silverstripe (that will act as a rotating gallery eventually) and was wondering if it was possible for a user to add a link for each of these images when uploading each image? 回答1: Yes. This can be achieved by having a has_many relationship to a custom DataObject which contains an image and a link object in it. In the following example we have a HomePage that has a has_many relationship to Slide . Slide contains an Image and Link . There is