Thank you for sharing. I am getting IOerror from this.  It seems to me that 
it's working on your server and not on mine. very weird.

On Wednesday, July 4, 2012 3:29:11 PM UTC-5, Relsi Hur wrote:
>
> here a very fast example.
>
> Em quarta-feira, 4 de julho de 2012 16h40min45s UTC-3, cheer10s escreveu:
>>
>> thank you for helping me
>>
>> I looked at some of the documentation and figured out some things but I 
>> get an IORERROafter uploading any ideas
>>
>> here is my modified controller and my uploadify script I am using 
>> uploadify version 3
>>
>> def myUpload():
>>     form = SQLFORM(db.music)
>>     if form.accepts(request.vars,session):
>>         mySong=request.post_vars.Filedata        
>>         db.music.insert(song = db.music.song.store(mySong.file, 
>> mySong.filename))
>>         response.flash = 'Your info has been submitted'
>>         return dict(form=form)
>>     elif form.errors:
>>         response.flash = 'Please correct the highlighted fields'
>>         return dict(form=form)
>>     else:
>>         return dict(form=form)
>>
>>
>> myUpload.html
>>
>> <script type="text/javascript">
>>
>>
>> jQuery('document').ready(function() {
>>     jQuery('#music_song').uploadify({
>>         'swf' : '{{=URL("static", "uploadify/uploadify.swf")}}',
>>         'script' : '{{=URL("default", "myUpload")}}',
>>         'cancelImg' : '{{=URL("static", 
>> "uploadify/uploadify-cancel.png")}}',
>>         'buttonText'    : 'Upload Song',
>>         'folder' : '/uploads/music',
>>         'auto'      : true,
>>         'multi'         : false,
>>         'checkExisting' : false
>>     });
>> });
>> </script>
>>
>> {{=form}}
>>
>>
>>
>>
>> On Wed, Jul 4, 2012 at 11:11 AM, Relsi Hur < <javascript:>> wrote:
>>
>>> here is working fine, but my script is a little different, see if 
>>> something helps:
>>>
>>> <http://pastebin.com/tKLSC9Uw>http://pastebin.com/tKLSC9Uw
>>>
>>> Em quarta-feira, 4 de julho de 2012 14h05min40s UTC-3, cheer10s escreveu:
>>>
>>>> Hello I am trying to use uploadify in my web2py app but I am having a 
>>>> bit of difficulty no errors occur it just doesn't work
>>>>
>>>>
>>>> These are my controllers
>>>>
>>>> def index():    
>>>>     return dict() 
>>>>
>>>> def myUpload():
>>>>     form = SQLFORM(db.music)
>>>>     if form.accepts(request.vars, session):
>>>>         response.flash = 'Your info has been submitted'
>>>>         return dict(form=form)
>>>>     elif form.errors:
>>>>         response.flash = 'Please correct the highlighted fields'
>>>>         return dict(form=form)
>>>>     else:
>>>>         return dict(form=form)
>>>>
>>>>
>>>> my index view
>>>>
>>>> {{extend "template.html"}}
>>>> <div id="content">
>>>>
>>>> {{=LOAD('default','myUpload',**ajax=False)}}
>>>>
>>>> </div>
>>>>
>>>> myUpload view (its not a load file)
>>>>
>>>> <script type="text/javascript">
>>>> $(document).ready(function() {
>>>>   $('#music_song').uploadify({
>>>>     "uploader"  : "{{=URL('static', 'uploadify/uploadify.swf')}}",
>>>>     "script"    : "{{=URL('default', 'index')}}",
>>>>     "cancelImg" : "{{=URL('static', 'uploadify/uploadify-cancel.**
>>>> png')}}",
>>>>     "auto"      : true
>>>>   });
>>>> });
>>>> </script>
>>>>
>>>> {{=form}}
>>>>
>>>>
>>>>
>>>> and this is in template.html 
>>>>
>>>>
>>>> <link href="{{=URL('static', 'uploadify/uploadify.css')}}" 
>>>> type="text/css" rel="stylesheet" />
>>>>
>>>> {{include "web2py_ajax.html"}}
>>>>
>>>> <script type="text/javascript" src="{{=URL('static', 
>>>> 'uploadify/swfobject.js')}}"><**/script>
>>>> <script type="text/javascript" src="{{=URL('static', 
>>>> 'uploadify/jquery.uploadify-3.**1.min.js')}}"></script>
>>>>
>>>>
>>>> the button appears but doesn't do anything can't select uploads 
>>>>
>>>> Any ideas?
>>>>
>>>> *cheers
>>>>
>>>>
>>>>
>>

-- 



Reply via email to