file upload check

251 views
Skip to first unread message

shasha...@gmail.com

unread,
May 22, 2018, 1:06:27 AM5/22/18
to Fujitsu RunMyProcess Developer Community
How can i check file size before uploading it?
plz tell how to do that.

Pankaj Kumar

unread,
May 22, 2018, 2:47:08 AM5/22/18
to Fujitsu RunMyProcess Developer Community
Hi,

Currently RunMyProcess do not provide file size check before uploading the file.  The maximum file size that an end user can upload to the RunMyProcess platform is 25 Mb. If file size is bigger than 25 Mb size, it will show you the error message of file size.

Thank you,
Pankaj Kumar
Fujitsu RunMyProcess Support

On Tue, May 22, 2018 at 10:36 AM, <shasha...@gmail.com> wrote:
How can i check file size before uploading it?
plz tell how to do that.

--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to the Google Groups "Fujitsu RunMyProcess Developer Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to supportforum+unsubscribe@runmyprocess.com.
To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at https://groups.google.com/a/runmyprocess.com/group/supportforum/.
To view this discussion on the web visit https://groups.google.com/a/runmyprocess.com/d/msgid/supportforum/46e6f882-2491-40ae-9702-fe7f2d4ca886%40runmyprocess.com.
For more options, visit https://groups.google.com/a/runmyprocess.com/d/optout.

Dipen Raval

unread,
May 24, 2018, 4:50:09 PM5/24/18
to Fujitsu RunMyProcess Developer Community
Hi,

Could you please confirm that issue has been clarified?
Please don't hesitate to contact us for any further query.

Thanks & Regards,
Dipen Raval
Fujitsu - RunMyProcess Support

stor...@gmail.com

unread,
May 25, 2018, 3:44:42 AM5/25/18
to Fujitsu RunMyProcess Developer Community, shasha...@gmail.com
Hi there

I have done similar things before. This is how I would do it with javascript:

// This will check the size of all files and print it to the console
var checkUploadedFiles = function(event) {
var files = event.target.files;
for (var i = 0; i < files.length; i++) {
console.log(files[i].name + ": " + files[i].size + " bytes");
}
};

// Bind the size validation to the actual file upload element
var updateFileUploader = function(widget) {
var file_upload_element = document.getElementById(widget.getName());
file_upload_element.onchange = checkUploadedFiles;
};

// Find all file upload widgets that should be updated
var findUploaders = function(widgets) {
for (var i = 0; i < widgets.length; i++) {
if (widgets[i] != undefined) {
if (Array.isArray(widgets[i])) {
findUploaders(widgets[i]);
}
else if (widgets[i].getType() === "RMP_FileUpload") {
updateFileUploader(widgets[i]);
}
}
}
};

// Wait until the page has finished updating before starting to change things
var updateFileUploaderWhenLoaded = function() {
if (!RMPApplication.isValid()) {
setTimeout(updateFileUploaderWhenLoaded, 100);
} else {
findUploaders(RMPApplication.getAllWidgets());
}
};

// Start the process
updateFileUploaderWhenLoaded();

Dipen Raval

unread,
Jun 1, 2018, 6:15:19 AM6/1/18
to Fujitsu RunMyProcess Developer Community, shasha...@gmail.com
Hi Shashank,

Good Day.

Could you please confirm that issue has been clarified?
Please don't hesitate to contact us for any further query.

Thanks & Regards,
Dipen Raval
Fujitsu - RunMyProcess Support
--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to the Google Groups "Fujitsu RunMyProcess Developer Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to supportforum+unsubscribe@runmyprocess.com.
To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at https://groups.google.com/a/runmyprocess.com/group/supportforum/.

Dipen Raval

unread,
Jun 4, 2018, 2:20:48 PM6/4/18
to Fujitsu RunMyProcess Developer Community, shashank tiwari
Hi Shashank,

Awaiting for your feedback to update the case.

Thanks & Regards,
Dipen Raval
Fujitsu RunMyProcess Support

shashank tiwari

unread,
Jun 4, 2018, 2:23:03 PM6/4/18
to Dipen Raval, Fujitsu RunMyProcess Developer Community
Yes, it's done. 

To unsubscribe from this group and stop receiving emails from it, send an email to supportforum...@runmyprocess.com.

To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at https://groups.google.com/a/runmyprocess.com/group/supportforum/.
Reply all
Reply to author
Forward
0 new messages