Bugs item #3016653, was opened at 2010-06-15 20:19
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=301665…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Pending
Resolution: None
Priority: 5
Private: No
Submitted By: chanueting (chanueting)
Assigned to: xqt (xqt)
Summary: upload.py "Invalid input filename given. Try again."
Initial Comment:
Could not check the address correctly if the filename is previously wrongly input.
I think the proper command on line 100 of function urlOK should be:
return self.url != len(url) and ('://' in self.url or os.path.exists(self.url))
instead of '' since '' is always False.
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2010-06-17 14:59
Message:
I would prefer
return len(self.url) > 0 and ('://' in self.url or
os.path.exists(self.url))
but it should work as the given expression. Again: What is your command
line or what is the filename you typed in?
----------------------------------------------------------------------
Comment By: chanueting (chanueting)
Date: 2010-06-17 13:13
Message:
Sorry about the typo. The command should be:
return len(self.url) and ('://' in self.url or os.path.exists(self.url))
I thought that is a bug since I could only have that works on my machine.
May be there is a problem on my machine?
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2010-06-16 12:41
Message:
url != len(url) is always True
What is your command line or what is the filename you typed in?
Try to input the file as follows if you are dealing wiht windows os:
"C:\\My Documents\\My Pictures\\My Picture.jpg"
----------------------------------------------------------------------
Comment By: chanueting (chanueting)
Date: 2010-06-15 20:21
Message:
python version.py missed:
http://pywiki.pastey.net/137714
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=301665…