% Complete > 100 When file is larger than chunk size

Upload core product.
Post Reply
jharter
Posts: 4
Joined: Mon Oct 21, 2013 7:59 pm

% Complete > 100 When file is larger than chunk size

Post by jharter »

Hello,

I followed the directions from the "Hide Chunks Uploading" section here: http://www.jfileupload.com/products/jfi ... ation.html

However, the behavior that we see is the first chunk will get to 100%, and then the bar remains full, and increments by another 100% each time after that. So if there are 16 chunks it will show 1600% before it completes the upload.

What are we missing?

Here is our i18n.properties:

Code: Select all

# Info panel
taskoutput.usage=Select or drag and drop file(s) to upload
taskoutput.split.info=Uploading: {0}
#taskoutput.split.size=in {0} chunk(s) up to {1} bytes
#taskoutput.split.chunk.started=Creating chunk {0} ...
#taskoutput.split.chunk.completed=chunk {0} created
#taskoutput.split.chunk.failed=Split failed : {0}
#taskoutput.compress.started=Zipping : {0} ...
#taskoutput.compress.completed=Ratio={0}%
#taskoutput.compress.failed=failed : {0}
#taskoutput.upload.info=Uploading : {0}
#taskoutput.upload.size=({0} bytes)
#taskoutput.upload.triggered=Connecting ...
#taskoutput.upload.started=Upload started ...
#taskoutput.upload.completed=Upload completed
#taskoutput.upload.cancelled=Upload cancelled
taskoutput.upload.done=Upload completed.
taskoutput.upload.failed=Upload failed : {0}
taskoutput.upload.failed.server.error=Server error {0}
taskoutput.upload.failed.maxsize.error=Denied : Maximum size allowed is {0} bytes
taskoutput.upload.failed.minsize.error=Denied : Minimum size allowed is {0} bytes
taskoutput.upload.failed.maxfiles.error=Denied : Maximum files allowed is {0}
taskoutput.upload.failed.hidden.error=Denied : Hidden file: {0}
taskoutput.upload.failed.whitelist.error=One or more files have an unacceptable extension.
taskoutput.upload.failed.filesonly.error=Denied : Directories not allowed : {0}
taskoutput.upload.failed.overwrite.error=Aborted, file already exists
taskoutput.separator=--------------------------------------------------
#taskoutput.scrollbar.vertical=asneeded
#taskoutput.linewrap=true
#taskoutput.image.background=dnd.jpg
taskoutput.color.background=FFFFF0
taskoutput.color.foreground=C61D5D
#taskoutput.filter.starting=Loading {0}
#taskoutput.filter.started=Filtering {0}
#taskoutput.filter.completed=Filtered {0}
#taskoutput.filter.failed=Filtering failed {0}
#taskoutput.preprocessingfilter.starting=Archiving {0} file(s) ... 
#taskoutput.preprocessingfilter.completed=Completed
#taskoutput.preprocessingfilter.failed=Failed {0}
#taskoutput.protocol=enabled
#taskoutput.protocol.request=> {0}
#taskoutput.protocol.response=< {0}

# Progress bar panel
#progress.button.cancel=Cancel
progress.button.cancel.color.background=d0def0
#progress.button.cancel.color.foreground=000000
#progress.button.cancel.disabled.color=000099
#progress.button.cancel.font.size.factor=2
#progress.button.cancel.font.style=bold
#progress.button.cancel.align=center
progress.button.select=Select file(s)
progress.button.select.color.background=cedff5
#progress.button.select.color.foreground=000033
#progress.button.select.disabled.color=000099
#progress.button.select.font.size.factor=2
#progress.button.select.font.style=bold
#progress.button.select.align=center
progress.button.spacing.x=5
progress.button.spacing.y=2
progress.button.spacing.color=FFFFFF
#progress.button.layout=bottom
progress.bar.color.background=d0def0
#progress.bar.color.foreground=5577FF
#progress.bar.color.selection.foreground=0000FF
progress.bar.color.selection.background=FF0000
#progress.bar.font.size.factor=2
#progress.bar.font.style=bold
#progress.bar.upload.triggered.label=Connecting ...
#progress.bar.upload.starting.label=Upload starting ...
progress.bar.upload.label=Uploading {0}% ({1}) [{2} files left]
progress.bar.upload.completing.label=Completing upload ...
progress.bar.upload.completing.color=55AAFF
progress.bar.upload.completed.label=Uploaded
progress.bar.upload.done.label=Upload complete. It may take a few moments before all files are viewable online.
progress.bar.upload.failed.label=Upload failed : {0}
progress.bar.upload.cancelled.label=Upload cancelled
progress.bar.upload.checksum.started.label=Computing {0} checksum ...
progress.bar.upload.checksum.completed.label=Checksum computed
progress.bar.upload.compress.started=Compressing : {0} ...
progress.bar.upload.compress.completed=Compression completed
progress.bar.upload.compress.failed=Compression failed : {0}
progress.bar.upload.filter.starting=Loading {0}
progress.bar.upload.filter.started=Filtering to {0} ...
progress.bar.upload.filter.completed=Filtering completed
progress.bar.upload.filter.failed=Filtering failed {0}
#progress.bar.upload.split.starting=Splitting file in {0} chunk(s)
#progress.bar.upload.split.started=Splitting in progress, chunk {0}/{1}
#progress.bar.upload.split.completed=Splitting completed, chunk {0}/{1}
#progress.bar.upload.split.failed=Splitting failed {0}
progress.bar.upload.preprocessingfilter.starting=Archiving {0} file(s)
progress.bar.upload.preprocessingfilter.started=Archiving in progress, adding file {0}/{1}
progress.bar.upload.preprocessingfilter.completed=Archiving completed
progress.bar.upload.preprocessingfilter.failed=Archiving failed {0}
progress.bar.upload.option=chunkratio
#progress.bar.upload.indeterminate=false
#progress.bar.upload.layout=center

# Additional progress bar info (timeelapsed, timeremaining or overallprogressbar)
#progress.info=timeelapsed
#progress.info.label=Time elapsed : {0}h {1}m {2}s ({3} KB/s)
#progress.info=timeremaining
#progress.info.label=Time remaining : {0}h {1}m {2}s ({3} KB/s)
#progress.info=overallprogressbar
#progress.info.label.align=center
#progress.info.label.foreground=AAAAAA
#progress.info.label.background=FFFFFF
#progress.info.label=Overall upload {0}% ({1}/{2})
#progress.info.option=chunkratio
#progress.info.layout=top

# Menus
menu.file=File
menu.file.open=Select file(s)
menu.help=Help
menu.help.about=About
#menu.help.about.msg=JFileUpload\nhttp://www.jfileupload.com
#menu.color.background=AACCFF
#menu.color.foreground=000055
#menu.color.selection.background=0088DD

# File chooser
#filechooser.dialog.width=640
#filechooser.dialog.height=320
#filechooser.dialog.selectionmode=filesonly
#filechooser.dialog.multipleselection=disabled
#filechooser.dialog.open.button=Open
#filechooser.dialog.open.button.tooltip=Open file or folder
#filechooser.dialog.cancel.button=Cancel
#filechooser.dialog.cancel.button.tooltip=Cancel selection
#filechooser.dialog.filefilter.label=Allowed files
filechooser.dialog.filefilter.blacklist={0} not allowed
# Image preview
#filechooser.preview.image=enabled
#filechooser.preview.image.title=Image preview
#filechooser.preview.image.enabled=Enabled
#filechooser.preview.image.width=140
#filechooser.preview.image.height=140
#filechooser.preview.image.scale=subsample
#filechooser.preview.image.maxsize=31457280
#filechooser.preview.image.forcergb=false

# Credentials pop-up. It applies only if "authentication" parameter is enabled
authentication.title={0} authentication - Attempt {1}
authentication.title.proxy={0} Proxy authentication - Attempt {1}
authentication.server=Server : 
authentication.scheme=Scheme : 
authentication.realm=Realm : 
authentication.username=Username : 
authentication.password=Password : 
authentication.host=Host : 
authentication.domain=Domain : 
authentication.confirm.yes=Ok
authentication.confirm.no=Cancel

# Look And Feel (classname or auto to select platform L&F) 
#lookandfeel=auto
#font.face=YOURTRUETYPEFONT.TTF
#font.size=16
#frame.title=JFileUpload

# Misc
#splitinfo=disabled
#zipinfo=disabled
#dnd=disabled

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: % Complete > 100 When file is larger than chunk size

Post by support »

What server-side script are you using? PHP one available in our tools section?
http://www.jfileupload.com/products/tools/index.html

jharter
Posts: 4
Joined: Mon Oct 21, 2013 7:59 pm

Re: % Complete > 100 When file is larger than chunk size

Post by jharter »

Thank you for the response.

We have a somewhat customized .NET backend. We generally follow the example you provide in process.aspx.

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: % Complete > 100 When file is larger than chunk size

Post by support »

Could you post your JavaScript file too?

Post Reply