Home Forum NetTalk Wiki Download/Upload Links Search Fat Chat
Links

Clarion

Clarion Desktop
Capesoft

Java Script

Java Calendar

NetTalk WebServers

POSitive Connect

Clarion Sites

Pimp my Clarion

RSS Feeds

Add to MyYahoo!
Subscribe in NewsGator Online
Add to Newsburst
Add to Google
Add to My AOL
Add to Pluck
Subscribe in FeedLounge
Add to Windows Live
Add to NetVibes
Subscribe in Rojo
Subscribe in Bloglines
Add to MyMSN
Add to Plusmo for your cellphone
Add to PageFlakes
Add to Technorati
Add to BlinkBits

Site Stats

Visits today: 113
Visits yesterday: 178
Visits month: 1500
Visits total: 122726
Max.monthly visits: 6414
  occurred: 2010-8
Pages this month: 6759
Pages total: 685595
Data since: 2007-06-23
Home arrow Forum arrow NetTalk Web Serverarrow Web Server - Ask For Helparrow Where to check if file upload has failed?
NetTalk Central
September 09, 2010, 10:45:43 am *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Welcome to the NetTalk Central Forums!
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Where to check if file upload has failed?  (Read 191 times)
Mike McLoughlin
Jr. Member
**
Posts: 50

mike@sterlingdata.com mikem099 mikem099
View Profile WWW Email
« on: February 03, 2010, 03:38:42 pm »

I'm using the File Upload field type in NTWS 4 - where I can check if the file upload actually completed successfully?

I guess somewhere in WebHandler?

regards

Mike
Logged

Mike McLoughlin
Bruce
Hero Member
*****
Posts: 1814



View Profile
« Reply #1 on: February 04, 2010, 09:12:23 pm »

How will you know if it completed correctly?
I mean, what about the incoming file will tell you that it's "complete"?
I'm not sure how the _server_ will be able to tell the difference between a complete and incomplete submission.
hmm - as I say, not sure.

Actually I'm not terribly sure you have to do anything. Off the top of my head I'd say that if the user gets a page back then it completed. If not, then probably not.

Cheers
Bruce
Logged
Mike McLoughlin
Jr. Member
**
Posts: 50

mike@sterlingdata.com mikem099 mikem099
View Profile WWW Email
« Reply #2 on: February 06, 2010, 04:08:59 am »

I'm keeping a log of files uploaded by users and it would be very handy to mark an upload as 'Failed' - it would cut down support massively if they were stopped from clicking to download files that weren't there.

Mike
 
Logged

Mike McLoughlin
Bruce
Hero Member
*****
Posts: 1814



View Profile
« Reply #3 on: February 06, 2010, 11:38:37 am »

use the Clarion EXISTS command to see if a file exists.

cheers
Bruce
Logged
terryd
Jr. Member
**
Posts: 73



View Profile Email
« Reply #4 on: February 08, 2010, 11:20:28 pm »

Mike
Disable the download button if the file doesn't exist. I have some code that works if it will help.
Logged
Mike McLoughlin
Jr. Member
**
Posts: 50

mike@sterlingdata.com mikem099 mikem099
View Profile WWW Email
« Reply #5 on: February 11, 2010, 07:22:42 am »

Yes I'd like to see that

thanks

Mike
Logged

Mike McLoughlin
terryd
Jr. Member
**
Posts: 73



View Profile Email
« Reply #6 on: February 13, 2010, 08:02:59 am »

Sorry about the delay. salt to taste iro variables
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!

Login Form

Welcome Guest.






Lost Password?
No account yet? Register

ClarionMag News

mod_dbrss2 AJAX RSS Reader poweredbysimplepie
home contact search contact search