MicrostockGroup Sponsors


Author Topic: iRockStock?  (Read 16330 times)

0 Members and 1 Guest are viewing this topic.




« Reply #77 on: December 15, 2011, 15:45 »
0
I don't mind the upload system.  I think the only way to succeed is to have enough buyers to keep the contributors happy.  Contributors want to upload their portfolios with ease but then they want instant sales.  That would be hard if everyone uploads everything at once.  If you don't have lots of money to spend, the best option is to grow slowly.  But that leads to anther problem, why should buyers use a site with a small collection of images?

I think Stockfresh have done everything right but they are struggling to get sales going.  I hope you can find a way to make it work.


« Reply #79 on: December 15, 2011, 23:31 »
0
You can upload illustrations in groups of 20 per post (more over tabs) so minus uploading time it shouldn't take hours it should take minutes.
One of the issues is that people lose track of where they are in their upload folder, hence duplicate file clicks. I took the liberty of changing the "validateFile()" on your upload page to avoid this, also checking for malicious "image.php.jpg" uploads on the client side.
Code: [Select]
function validateFile ( e, IDf, IDe, msgnojpg, msgthere ) {
//.. Count file duplicates ...................
var there = 0;
var elLength = document.uploadForm.elements.length;
for (var i = 0; i < elLength; i++) {
if (uploadForm.elements[i].type == 'file') {
var value = uploadForm.elements[i].value;
if ((value.length > 0) && (value == e.value)) there++;
}; };
//.. Get extension and period count ...........
var count = 0; // avoid "image.php.jpg" or "image.jpg.php"
for (var i = 0; i < e.value.length; i++) if (e.value.charAt(i) == '.') count++;
$ext = e.value.split('.').pop().toLowerCase();
//.. Diagnose .................................
if ((($ext == "jpg") || ($ext == "jpeg")) && (count == 1) && (there < 2)) {
document.getElementById(IDf).style.backgroundColor = '#ffffff';
document.getElementById(IDf).style.color = '#000000';
document.getElementById(IDe).innerHTML = "&nbsp;";
} else {
e.value = '';
document.getElementById(IDf).style.backgroundColor = '#dedede';
document.getElementById(IDf).style.color = '#ababab';
if (there > 1) document.getElementById(IDe).innerHTML = msgthere
else document.getElementById(IDe).innerHTML = msgnojpg;
}; };
« Last Edit: December 15, 2011, 23:34 by AttilaTheNun »

« Reply #80 on: December 16, 2011, 02:29 »
0
... also checking for malicious "image.php.jpg" uploads on the client side.

If it's not an image it'll be disregarded regardless of the extension(s). Take your point about losing track though.

Carl

  • Carl Stewart, CS Productions
« Reply #81 on: December 23, 2011, 12:09 »
0
It's been down for days.  Anyone know if / when it will be back up?

« Reply #82 on: December 23, 2011, 14:30 »
0
iRockStock
We're migrating files over to our new servers. More news tomorrow.
23 hours ago


 

Related Topics

  Subject / Started by Replies Last post
4 Replies
1334 Views
Last post May 03, 2012, 05:16
by halfshag

Sponsors

Microstock Poll Results