April 28, 2024, 11:59:41 PM

Author Topic: File read test  (Read 8749 times)

pixelgeek

  • Global Moderator
  • Sr. Mage
  • *****
  • Posts: 444
  • Banana Stickers 2
    • View Profile
    • Zac's Gaming Blog
File read test
« on: November 04, 2013, 09:06:48 PM »
Hi guys

If you have a moment can you help me with a test for the Spellbook Builder?

Download this file and save it on your desktop or somewhere convenient

http://calgarygamers.net/test/SaveTest5.sbb

Then visit this URL and choose the file from above and try to read it

http://calgarygamers.net/test/upload.html

If the result isn't that the text area displays the following text (or you just get an error)

Code: [Select]
0 : Save Test 5
1 : Forcemaster
2 : 1,1,0,0,1,
3 : 76
4 : 1,2,1,0,1,1,
5 : 6
6 : mw1c01,1
7 : MWSTX1CKQ05,1
8 : mw1i07,1
9 : mw1a03,1
10 : mw1c18,1
11 : mw1j14,1
12 :

then please post your OS, OS version browser and browser version

I am attempting to build the code that reads saved spellbooks and I want to do some testing to see how many browsers that code will work in

Thanks muchly
  • Favourite Mage: Adramelech Warlock
Arcane Wonders Web Guy
Problem with the forums or website?

Send me a PM

Words to live by: I commit strongly to defending my wand.   Precisely so that I don't lose it.

sIKE

  • Playtester
  • Legendary Mage
  • *
  • Posts: 4172
  • Banana Stickers 18
  • Ugh
    • View Profile
Re: File read test
« Reply #1 on: November 04, 2013, 09:35:50 PM »
Worked on the Windows 8.1 64bit Pro Preview with the both of my Browsers:

IE 11.0.9431.217 32bit
Chrome Version 30.0.1599.101 m
  • Favourite Mage: Malakai Priest

Moonglow

  • Sr. Mage
  • ****
  • Posts: 448
  • Banana Stickers 2
    • View Profile
Re: File read test
« Reply #2 on: November 05, 2013, 02:55:42 AM »
Worked on google chrome running on android.

haslo

  • Jr. Mage
  • **
  • Posts: 51
  • Banana Stickers 1
    • View Profile
Re: File read test
« Reply #3 on: November 05, 2013, 02:59:01 PM »
Might this be what you're looking for?

http://caniuse.com/filereader

pixelgeek

  • Global Moderator
  • Sr. Mage
  • *****
  • Posts: 444
  • Banana Stickers 2
    • View Profile
    • Zac's Gaming Blog
Re: File read test
« Reply #4 on: November 05, 2013, 03:31:37 PM »
Might this be what you're looking for?

http://caniuse.com/filereader

Nope

Thanks for the link though
  • Favourite Mage: Adramelech Warlock
Arcane Wonders Web Guy
Problem with the forums or website?

Send me a PM

Words to live by: I commit strongly to defending my wand.   Precisely so that I don't lose it.

IndyPendant

  • Full Mage
  • ***
  • Posts: 131
  • Banana Stickers 2
    • View Profile
Re: File read test
« Reply #5 on: November 05, 2013, 05:31:17 PM »
Worked fine with Windows 7 64 Bit Home Premium 6.1, and Firefox v25.0

haslo

  • Jr. Mage
  • **
  • Posts: 51
  • Banana Stickers 1
    • View Profile
Re: File read test
« Reply #6 on: November 05, 2013, 06:30:09 PM »
For fun and giggles, I got an Opera 10.63 for my OS X 10.8, and behold, nothing happened :P

The reason why I posted the link is that when I looked at the JS code, the FileReader API call in there seemed to be the only thing that's not very widely supported. But I'm obviously mistaken, as when I tested with Opera 11.00, I got this JS error instead:

Quote
Event thread: change
Uncaught exception: TypeError: Cannot convert 'evt.target.files' to object
Error thrown at line 22, column 12 in readSingleFile(evt) in http://calgarygamers.net/test/upload.html:
    var f = evt.target.files[0];

Opera 11.10 seems to have added support for the File API as well though; I tested 11.11 and that works fine.

So it looks like this link is also relevant:

http://caniuse.com/fileapi

pixelgeek

  • Global Moderator
  • Sr. Mage
  • *****
  • Posts: 444
  • Banana Stickers 2
    • View Profile
    • Zac's Gaming Blog
Re: File read test
« Reply #7 on: November 05, 2013, 08:34:44 PM »
As you can see, docs are not necessarily the same as real-world experience :-)

Its a handy link but I want to see what people's actual experience is with it
  • Favourite Mage: Adramelech Warlock
Arcane Wonders Web Guy
Problem with the forums or website?

Send me a PM

Words to live by: I commit strongly to defending my wand.   Precisely so that I don't lose it.

Sailor Vulcan

  • Secret Identity: Imaginator
  • Legendary Mage
  • *****
  • Posts: 3130
  • Banana Stickers 3
    • View Profile
Re: File read test
« Reply #8 on: November 10, 2013, 07:38:07 PM »
Have windows 8. Didn't work on firefox or internet explorer. For both programs, the file opened into a new browser tab, rather than downloading. Also, the text that shows up in the tab is slightly different:

Save Test 5
Forcemaster
1,1,0,0,1,
76
1,2,1,0,1,1,
6
mw1c01,1
MWSTX1CKQ05,1
mw1i07,1
mw1a03,1
mw1c18,1
mw1j14,1

No numbered bullet list with colons. Because it was treated like a browser page rather than a downloadable file, I couldn't upload it as anything other than a link. This, of course, caused an even more different body of text to show up. This time the numbers and colons DID appear, but not the code that was supposed to follow them. Instead, the text box included things having to do with the link on my desktop rather than the contents of the file it connected to.

I'd rather not post this body of text though, since it shows the path to the browser link on my desktop, and that includes my full name.
  • Favourite Mage: Salenia Forcemaster
I am Sailor Vulcan! Champion of justice and reason! And yes, I am already aware my uniform is considered flashy, unprofessional, and borderline sexually provocative for my species by most intelligent lifeforms. I did not choose this outfit. Shut up.

pixelgeek

  • Global Moderator
  • Sr. Mage
  • *****
  • Posts: 444
  • Banana Stickers 2
    • View Profile
    • Zac's Gaming Blog
Re: File read test
« Reply #9 on: November 10, 2013, 08:04:02 PM »
  • Favourite Mage: Adramelech Warlock
Arcane Wonders Web Guy
Problem with the forums or website?

Send me a PM

Words to live by: I commit strongly to defending my wand.   Precisely so that I don't lose it.

Sailor Vulcan

  • Secret Identity: Imaginator
  • Legendary Mage
  • *****
  • Posts: 3130
  • Banana Stickers 3
    • View Profile
Re: File read test
« Reply #10 on: November 10, 2013, 09:24:35 PM »
Firefox is version 25.0

I have internet explorer 10. There are two version numbers on the same internet explorer program, one that's really long and one that's short. The short one says "update versions" before the version number, and the long one just has the word "version" before it. I'm not entirely sure which one is which, but version 10 seems like a good approximation for both of them.

In spite of knowing more about computers than almost everyone I've ever met, I'm still a complete and utter n00b. :(
  • Favourite Mage: Salenia Forcemaster
I am Sailor Vulcan! Champion of justice and reason! And yes, I am already aware my uniform is considered flashy, unprofessional, and borderline sexually provocative for my species by most intelligent lifeforms. I did not choose this outfit. Shut up.

pixelgeek

  • Global Moderator
  • Sr. Mage
  • *****
  • Posts: 444
  • Banana Stickers 2
    • View Profile
    • Zac's Gaming Blog
Re: File read test
« Reply #11 on: November 10, 2013, 09:48:37 PM »
I see the problem. Just right click on the link and select "Download linked file"
  • Favourite Mage: Adramelech Warlock
Arcane Wonders Web Guy
Problem with the forums or website?

Send me a PM

Words to live by: I commit strongly to defending my wand.   Precisely so that I don't lose it.