Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * In xcrud.php, look for this line $postdata = $this->check_postdata($postdata, $this->primary_val); around line 3093
- * Immediately below this line paste the code block you see below.
- * Tested on Xcrud v1.6.26
- */
- if ($this->upload_config)
- {
- foreach ($this->upload_config as $key => $opts)
- {
- if (isset($opts['blob']) && $opts['blob'] && isset($postdata[$key]) && $postdata[$key] != '')
- {
- if ($postdata[$key] == 'blob-storage')
- {
- unset($postdata[$key]);
- continue;
- }
- else
- {
- $folder = $this->upload_folder[$key];
- $path = $folder . '/' . $postdata[$key];
- if (is_file($path))
- {
- $postdata[$key] = file_get_contents($path);
- unlink($path);
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement