Page 1 of 1
Can'T upload to decks
Posted: Tue 17 May, 2005 5:01 pm
by pteb
Hi
I was trying to upload a pdf version of Waites PKT to the decks section but kept getting a message telling me to fill in all the boxes even though I thought that I had. Any idea why?
Pteb
Re: Can'T upload to decks
Posted: Wed 18 May, 2005 8:00 am
by Programmer
Hi Pteb,
My guess is that the javascript is failing to run properly in the emulator, but I am not sure why that would be so. Although it asks you to fill in all the fields the only two it actually validates are the name of the deck and fact that you have browsed to or specified a valid file address. I will have a look at it at the weekend and see if I can spot anything that might be failing.
BTW, thanks for sending that link!
Richard
Re: Re: Can'T upload to decks
Posted: Wed 18 May, 2005 8:10 pm
by pteb
hi
If the problem is with the emulator then I could put the pdf tarot books on the downloads page of my website and somone could download them from my site and then upload them onto the orphalese website.
pteb
Re: Re: Re: Can'T upload to decks
Posted: Thu 19 May, 2005 11:52 am
by Programmer
Hi Pteb,
OK, but before we do that I had another thought. I looked at the validation routine to see what might be going wrong and I noticed that it also validates that the upload is a zip file, with a .zip extension. It occurred to me that being a mac user you might be using some other compression tool?
If it isn't this I will take away the javascript validation altogether until I can sort out what the problem is. (The program still validates the input, but it does so on the server. The javascript is just to save time for the user so they don't have to wait to find out if they missed an obvious field or something).
Cheers,
Richard
Re: Re: Re: Re: Can'T upload to decks
Posted: Thu 19 May, 2005 12:33 pm
by pteb
Hi Richard
I think you may of found the problem. I use stuffit for compresison and it produces sit files. I will have a look to see if it can output zip files. I know it can expand them. Thanks for your help.
Pteb
Re: Re: Re: Re: Re: Can'T upload to decks
Posted: Thu 19 May, 2005 12:53 pm
by pteb
Hi Richard
Your theory was correct. I got stuffit to output a zip file instead of the sit and this uploaded fine. Thanks again for your help.
Pteb
Re: Re: Re: Re: Re: Re: Can'T upload to decks
Posted: Sat 21 May, 2005 9:02 am
by Programmer
Hi Pteb,
Thanks for uploading. Just for your information I changed the validation so it now gives a more helpful message in the case of a non-zip file. The other message was misleading.
Richard