search for: fileobj

Displaying 7 results from an estimated 7 matches for "fileobj".

Did you mean: fileobs
2010 Sep 21
0
Upload form with uploadify jquery plugin
...>)'', fileExt : ''<%= allowed_extensions.collect { |ext| "*.#{ext}" }.join('';'') %>'', sizeLimit : <%= max_size %>, multi : <%= allow_multiple_files %>, onComplete : function(event, queueID, fileObj, response, data) { var data = eval(''('' + response + '')'');$.getScript(data.photo)}, onAllComplete : function(event, data){ $(''#uploadify_cancel'').hide(''blind''); $(''#uploadify_submit'').show('...
2006 Apr 03
4
Multiple file uploads - only one file object gets posted
...@image.path.split(''/'').last[0..39] %>: <% if ((! @image.path.nil?) && (@image.path.length > 40)) %> <%= h("...") %> <% end %> </TD> <TD> <%= file_field(''image'', ''fileobj'', :index => index) %> </TD> </TR> <% index += 1 end %> I browse for 3 of the many files, and submit the form: When I look at params in the controller, I see: "0"=>{"fileobj"=>#<File:C:/DOCUME~1/WESLEY~1/LOCALS~1/Temp/CGI24...
2007 Jul 13
0
Dconf trouble
...pen(fromfile) File "/etc/cron.weekly/dconf", line 142, in dzopen return gzip.open(filename, arg) File "/usr/lib/python2.3/gzip.py", line 49, in open return GzipFile(filename, mode, compresslevel) File "/usr/lib/python2.3/gzip.py", line 94, in __init__ fileobj = self.myfileobj = __builtin__.open(filename, mode or 'rb') IOError: [Errno 2] No such file or directory: '/dconf-fs11-20070610-042246.log.gz'
2011 Jul 07
0
Question of uploading large file using carrierwave, uploadify and nginx upload module
...buttonText: ''Select files'', uploader: ''/uploadify/uploadify.swf'', cancelImg: ''/uploadify/cancel.png'', multi: true, auto: false, script: ''/files/fast_upload'', onComplete: function(event, queueID, fileObj, response, data) { var dat = eval(''('' + response + '')''); $.getScript(dat.upload);}, onAllComplete: function(event, data) { alert(data.filesUploaded + '' files uploaded successfully!\nThe average speed is '' + data.speed);...
2020 Jul 13
1
Re: nbdkit / exposing disk images in containers
...temporary file. For example in python you can create a tarfile over with > the http response object in streaming with transparent decompression mode > ("r|*"), and stream the disk contents from the tar without a temporary file. > > with tarfile.open(mode="r|*", fileobj=response) as tar: > for member in tar: > if member.name == "./disk/downloaded": > with tar.extractfile(member) as f > shutil.copyfileobj(f, sys.stdout.buffer) > sys.exit(0) > > I think this i...
2020 Jul 12
0
Re: nbdkit / exposing disk images in containers
...to keep the tar in a temporary file. For example in python you can create a tarfile over with the http response object in streaming with transparent decompression mode ("r|*"), and stream the disk contents from the tar without a temporary file. with tarfile.open(mode="r|*", fileobj=response) as tar: for member in tar: if member.name == "./disk/downloaded": with tar.extractfile(member) as f shutil.copyfileobj(f, sys.stdout.buffer) sys.exit(0) I think this is what cdi import code does, and is...
2020 Jul 11
2
nbdkit / exposing disk images in containers
KubeVirt is a custom resource (a kind of plugin) for Kubernetes which adds support for running virtual machines. As part of this they have the same problems as everyone else of how to import large disk images into the system for pets, templates, etc. As part of the project they've defined a format for embedding a disk image into a container (unclear why? perhaps so these can be distributed